Skip to content

Commit 7c09ee5

Browse files
committed
only for vrc avatars
1 parent 2ba8bb5 commit 7c09ee5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Editor/Generation/TemplateOutput.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,12 @@ protected sealed override void Generate(NodeVisitor visitor) { }
170170
internal const string _graphlitConfigPath = "Assets/Settings/GraphlitConfig.hlsl";
171171
internal bool _graphlitConfigExists = System.IO.File.Exists(_graphlitConfigPath);
172172

173+
// only for vrchat avatars
174+
#if VRC_SDK_VRCSDK3 && !UDONSHARP
173175
public const string FOG_VARIANTS_NAME = "#pragma dynamic_branch FOG_EXP FOG_EXP2 FOG_LINEAR";
176+
#else
177+
public const string FOG_VARIANTS_NAME = "#pragma multi_compile_fog";
178+
#endif
174179

175180
protected void IncludeConfig(PassBuilder pass)
176181
{

0 commit comments

Comments
 (0)