Skip to content

Commit

Permalink
[Shaders] Fixed error related to non static functions that showed up …
Browse files Browse the repository at this point in the history
…only on Windows 11
  • Loading branch information
PanosK92 committed Nov 26, 2023
1 parent 76362bf commit ce37824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/shaders/g_buffer.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ struct PixelOutputType

struct water
{
float3 combine_normals(float3 normal1, float3 normal2)
static float3 combine_normals(float3 normal1, float3 normal2)
{
// separate components
float nx1 = normal1.x, ny1 = normal1.y, nz1 = normal1.z;
Expand All @@ -59,7 +59,7 @@ struct water
return normalize(float3(combinedX, combinedY, combinedZ));
}

float3 sample_interleaved_normal(float2 uv)
static float3 sample_interleaved_normal(float2 uv)
{
// constants for scale and direction of the normal map movement
float2 direction1 = float2(1.0, 0.5);
Expand Down

0 comments on commit ce37824

Please sign in to comment.