Skip to main content

ShaderLab Features

In this page are displayed all the ShaderLab features that are supported by Playworks Plugin.

ShaderLab Feature Supported
Shader blockYes
Properties blockYes
Fallback blockOnly for ShadowCaster

Subshaders

SubShaders
Feature Supported
SubShader blockYes
PackageRequirements blockNo
SubShader LOD blockYes
SubShader Tags
Feature Supported
SubShader Tags blockYes
RenderPipeline SubShader tagNo
Queue SubShader tagYes
RenderType SubShader tagYes
DisableBatching SubShader tagNo
CanUseSpriteAtlas SubShader tagNo
PreviewType SubShader tagNo
SubShader Commands
Feature Supported
UsePassYes
GrabPassYes

Pass

Pass
Feature Supported
Pass blockYes
Name blockYes
Pass Tags
Feature Supported
Pass Tags blockYes
LightMode tagYes
PassFlags tagNo
RequiteOptions tagNo
Pass Commands
Feature Supported
AlphaToMaskNo
BlendYes
BlendOpYes
ColorMaskYes
ConservativeNo
CullYes
OffsetYes
StencilYes
ZClipYes
ZTestYes
ZWriteYes

#pragma

#pragma
Feature Supported
#pragma target <value> 2.0 - 3.0 (limited for 3.0)
#pragma only_renderers <value> Unity Playworks Plugin needs GLES target shaders
#pragma exclude_renderers <value> Unity Playworks Plugin needs GLES target shaders