Skip to content

Commit

Permalink
Fix in hair strand shader
Browse files Browse the repository at this point in the history
  • Loading branch information
AEspinosaDev committed Oct 29, 2024
1 parent 5944ae5 commit 4229a9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/engine/core/materials/hair.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ class HairMaterial : public IMaterial
float m_thickness{0.003f};

bool m_R{true}; // Reflection
float m_Rpower{5.0f};
float m_Rpower{1.0f};

bool m_TT{true}; // Transmitance
float m_TTpower{1.0f};

bool m_TRT{true}; // Second reflection
float m_TRTpower{15.0f};
float m_TRTpower{25.0f};

float m_roughness{0.4f};
float m_scatter{500.0f};
Expand Down
1 change: 1 addition & 0 deletions resources/shaders/forward/hair_strand.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ vec3 computeAmbient(vec3 n) {
// material.r,
// false,
// material.trt);
ambient = (scene.ambientIntensity * scene.ambientColor) * material.baseColor;

}else{
ambient = (scene.ambientIntensity * scene.ambientColor) * material.baseColor;
Expand Down

0 comments on commit 4229a9d

Please sign in to comment.