最終更新:2023-03-10 (金) 11:42:34 (739d)
Babylon.js/テクスチャ
Top / Babylon.js / テクスチャ
https://doc.babylonjs.com/typedoc/classes/BABYLON.Texture
https://doc.babylonjs.com/features/featuresDeepDive/materials/using/materials_introduction#texture
https://doc.babylonjs.com/features/introductionToFeatures/chap2/material
概要
- マテリアル(BABYLON.StandardMaterial)に対してテクスチャを設定し、メッシュに適用する
const myMaterial = new BABYLON.StandardMaterial("myMaterial", scene); myMaterial.diffuseTexture = new BABYLON.Texture("PATH TO IMAGE", scene); myMaterial.specularTexture = new BABYLON.Texture("PATH TO IMAGE", scene); myMaterial.emissiveTexture = new BABYLON.Texture("PATH TO IMAGE", scene); myMaterial.ambientTexture = new BABYLON.Texture("PATH TO IMAGE", scene); mesh.material = myMaterial;
なんとかTexture
BABYLON.StandardMaterial.ambientTexture? BABYLON.StandardMaterial.bumpTexture? BABYLON.StandardMaterial.diffuseTexture BABYLON.StandardMaterial.emissiveTexture BABYLON.StandardMaterial.lightmapTexture? BABYLON.StandardMaterial.opacityTexture BABYLON.StandardMaterial.reflectionTexture? BABYLON.StandardMaterial.refractionTexture?
BABYLON.ThinTexture
- Base class of all the textures in babylon.
- It groups all the common properties required to work with Thin Engine.
BABYLON.BaseTexture
- Base class of all the textures in babylon.
- It groups all the common properties the materials, post process, lights... might need in order to make a correct use of the texture.
サブクラス
- BABYLON.CubeTexture
- BABYLON.Texture
- BABYLON.HDRCubeTexture?
- BABYLON.ColorGradingTexture?
- BABYLON.EquiRectangularCubeTexture?
- BABYLON.HtmlElementTexture?
- BABYLON.AsciiArtFontTexture?
- BABYLON.DigitalRainFontTexture?
メモ
バンプマップ BABYLON.StandardMaterial.bumpTexture? 透明度 BABYLON.StandardMaterial.opacityTexture