Skip to content

StandardMaterial.baseColorTexture

Summary

StandardMaterial.baseColorTexture reads the current baseColorTexture value from this StandardMaterial instance. Use it to inspect runtime state without mutating resources.

Syntax

StandardMaterial.baseColorTexture: Texture2D | null
const value = material.baseColorTexture;

Parameters

This API does not take parameters.

Returns

Texture2D | null - Current accessor value exposed by the runtime object.

Type Details

// No additional descriptor expansion is required for this signature.

Example

const canvas = document.querySelector("canvas");
const wgpu = await WasmGPU.create(canvas);

const material = wgpu.material.standard({ color: [0.8, 0.8, 0.9], roughness: 0.5, metallic: 0.2 });
const value = material.baseColorTexture;
console.log(value);

See Also