The StaticShader component is used to handle the shaders often seen in Materials.
Shaders of these types are currently compiled by unity into the form of HLSL shader code, and are not ever interacted with by the player, and unapproved shaders are blocked by the FrooxEngine
The tooling has become very "fixed". A lot of this comes down to Unity's migration from runtime compiled shaders to statically compiled shaders entirely within the editor. If you want yet another reason why we don't support custom shaders today, this is another part of it.
— Geenz 28/10/2023 4:55AM UTC
Fields
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. |
URL
|
Uri | The URI to the FrooxEngine approved shader generated by the Rendering team of YellowDogManStudios. |
Usage
Don't use this directly, but it is used by materials to insert textures and colors via the material keywords (So Albedo gets plugged into _Albedo on the shader parameters)