最終更新:2023-03-10 (金) 11:42:34 (359d)  

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.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.

サブクラス

メモ

参考

関連