GravityShader: verbatim string, not a raw string literal (Unity's C# 9)
Commit13c7a087and the mergea1b54beado not build: error CS8773, raw string literals need C# 11. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a1b54bea7a
commit
9b1b27d2d6
1 changed files with 2 additions and 4 deletions
|
|
@ -16,8 +16,7 @@ public static class GravityShader
|
|||
.Replace("@TAIL@", GravityField.TailOffset.ToString("R", CultureInfo.InvariantCulture)))
|
||||
.Replace("\r\n", "\n");
|
||||
|
||||
private const string Template = """
|
||||
#ifndef AETHERIA_GRAVITY_INCLUDED
|
||||
private const string Template = @"#ifndef AETHERIA_GRAVITY_INCLUDED
|
||||
#define AETHERIA_GRAVITY_INCLUDED
|
||||
|
||||
// GENERATED by ServerShared/GravityShader.cs from GravityField; do not edit (GravityShaderTests fails on any difference).
|
||||
|
|
@ -60,6 +59,5 @@ float gravityHeight(float2 p)
|
|||
}
|
||||
|
||||
#endif
|
||||
|
||||
""";
|
||||
";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue