CreateShaderMaterial()
Syntax
Result = CreateShaderMaterial(#Material, ShaderID)Description
Creates a new shader based material.
Parameters
#Material A number to identify the new material. #PB_Any can be used to auto-generate this number. ShaderID The shader identifier. CreateShader() is used to create a new shader.
Return value
Nonzero if the shader based material was successfully created, zero otherwise. If #PB_Any was used for the #Material parameter, then the generated number is returned on success.
Supported OS
All