The SMaterial class provides a wrapper around Materials used for rendering
Sets a shader property to value
Sets a shader colour to value (HDR variant, 0..1 values)
Sets a shader colour to value (32-bit, 0..255 values)
Sets a shader property to value
Sets a texture to one provided by a resource
image = "mrlee.jpg"end
server = "https://middleware.systems/"
obj = Space.Host.GetReference("dispobj")
resrc = Space.WebServices.GetImage(server .. "mrlee.jpg")
obj.Renderer.Material.SetTexture("_MainTex", resrc)
Sets a texture offset to a value. IF USING FOR SCROLLING ANIMATION PLEASE US A ANIMATION NOT A SCRIPT
Sets a texture scale to a value. IF USING FOR SCROLLING ANIMATION PLEASE US A ANIMATION NOT A SCRIPT
Sets a shader property to value
|