Skip to content

Commit 2c27291

Browse files
committed
Shader fix attempt.
1 parent c13dc22 commit 2c27291

20 files changed

Lines changed: 20 additions & 39 deletions

File tree

Nu/Nu.Gaia/Assets/Default/PhysicallyBasedDeferredColoring.frag

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ void computeSsrl(float depth, vec4 position, vec3 albedo, float roughness, float
219219
vec3 diffuse = irradiance * albedo * ambientLight;
220220

221221
// compute color
222-
specularScreen = lightAccum + diffuse + specular;
223-
specularScreen *= lighting.ssrlIntensity;
222+
specularScreen = (lightAccum + diffuse) * lighting.ssrlIntensity;
224223

225224
// compute weight
226225
specularScreenWeight =

Nu/Nu.Pipe/Assets/Default/PhysicallyBasedDeferredColoring.frag

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ void computeSsrl(float depth, vec4 position, vec3 albedo, float roughness, float
219219
vec3 diffuse = irradiance * albedo * ambientLight;
220220

221221
// compute color
222-
specularScreen = lightAccum + diffuse + specular;
223-
specularScreen *= lighting.ssrlIntensity;
222+
specularScreen = (lightAccum + diffuse) * lighting.ssrlIntensity;
224223

225224
// compute weight
226225
specularScreenWeight =

Nu/Nu.Template.ImSim.Empty/Assets/Default/PhysicallyBasedDeferredColoring.frag

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ void computeSsrl(float depth, vec4 position, vec3 albedo, float roughness, float
219219
vec3 diffuse = irradiance * albedo * ambientLight;
220220

221221
// compute color
222-
specularScreen = lightAccum + diffuse + specular;
223-
specularScreen *= lighting.ssrlIntensity;
222+
specularScreen = (lightAccum + diffuse) * lighting.ssrlIntensity;
224223

225224
// compute weight
226225
specularScreenWeight =

Nu/Nu.Template.ImSim.Game/Assets/Default/PhysicallyBasedDeferredColoring.frag

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ void computeSsrl(float depth, vec4 position, vec3 albedo, float roughness, float
219219
vec3 diffuse = irradiance * albedo * ambientLight;
220220

221221
// compute color
222-
specularScreen = lightAccum + diffuse + specular;
223-
specularScreen *= lighting.ssrlIntensity;
222+
specularScreen = (lightAccum + diffuse) * lighting.ssrlIntensity;
224223

225224
// compute weight
226225
specularScreenWeight =

Nu/Nu.Template.Mmcc.Empty/Assets/Default/PhysicallyBasedDeferredColoring.frag

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ void computeSsrl(float depth, vec4 position, vec3 albedo, float roughness, float
219219
vec3 diffuse = irradiance * albedo * ambientLight;
220220

221221
// compute color
222-
specularScreen = lightAccum + diffuse + specular;
223-
specularScreen *= lighting.ssrlIntensity;
222+
specularScreen = (lightAccum + diffuse) * lighting.ssrlIntensity;
224223

225224
// compute weight
226225
specularScreenWeight =

Nu/Nu.Template.Mmcc.Game/Assets/Default/PhysicallyBasedDeferredColoring.frag

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ void computeSsrl(float depth, vec4 position, vec3 albedo, float roughness, float
219219
vec3 diffuse = irradiance * albedo * ambientLight;
220220

221221
// compute color
222-
specularScreen = lightAccum + diffuse + specular;
223-
specularScreen *= lighting.ssrlIntensity;
222+
specularScreen = (lightAccum + diffuse) * lighting.ssrlIntensity;
224223

225224
// compute weight
226225
specularScreenWeight =

Nu/Nu.Tests/Assets/Default/PhysicallyBasedDeferredColoring.frag

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ void computeSsrl(float depth, vec4 position, vec3 albedo, float roughness, float
219219
vec3 diffuse = irradiance * albedo * ambientLight;
220220

221221
// compute color
222-
specularScreen = lightAccum + diffuse + specular;
223-
specularScreen *= lighting.ssrlIntensity;
222+
specularScreen = (lightAccum + diffuse) * lighting.ssrlIntensity;
224223

225224
// compute weight
226225
specularScreenWeight =

Projects/Blaze Vector ImSim/Assets/Default/PhysicallyBasedDeferredColoring.frag

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ void computeSsrl(float depth, vec4 position, vec3 albedo, float roughness, float
219219
vec3 diffuse = irradiance * albedo * ambientLight;
220220

221221
// compute color
222-
specularScreen = lightAccum + diffuse + specular;
223-
specularScreen *= lighting.ssrlIntensity;
222+
specularScreen = (lightAccum + diffuse) * lighting.ssrlIntensity;
224223

225224
// compute weight
226225
specularScreenWeight =

Projects/Blaze Vector Mmcc/Assets/Default/PhysicallyBasedDeferredColoring.frag

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ void computeSsrl(float depth, vec4 position, vec3 albedo, float roughness, float
219219
vec3 diffuse = irradiance * albedo * ambientLight;
220220

221221
// compute color
222-
specularScreen = lightAccum + diffuse + specular;
223-
specularScreen *= lighting.ssrlIntensity;
222+
specularScreen = (lightAccum + diffuse) * lighting.ssrlIntensity;
224223

225224
// compute weight
226225
specularScreenWeight =

Projects/Breakout ImSim/Assets/Default/PhysicallyBasedDeferredColoring.frag

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ void computeSsrl(float depth, vec4 position, vec3 albedo, float roughness, float
219219
vec3 diffuse = irradiance * albedo * ambientLight;
220220

221221
// compute color
222-
specularScreen = lightAccum + diffuse + specular;
223-
specularScreen *= lighting.ssrlIntensity;
222+
specularScreen = (lightAccum + diffuse) * lighting.ssrlIntensity;
224223

225224
// compute weight
226225
specularScreenWeight =

0 commit comments

Comments
 (0)