Skip to content

Shader Texture

Updated

One image a shader material reads through a texture uniform.

Type
comp-shader-texture
Script class
ShaderTextureComponent
Per entity
Several
Version
1.0.0

Read about it in Shaders: what it does, how to use it from a script, and examples.

Run it in the browser, read its scripts, and download it as an XR Creator project.

#pragma lifecycle(startup)
function startup() {
const component = self.parent.getComponent(ShaderTextureComponent);
if (component) log(component.props);
}