Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HYDRA-1336 : Change specular Color to have an update when changing th… #232

Merged
merged 2 commits into from
Dec 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ surfaceShader(vec4 Peye, vec3 Neye, vec4 color, vec4 patchCoord)
vec3 ambientColor = vec3(0);//Hardcoded
//Get the value of the custom color float3 parameter from the material, it is named "FVP_CustomColor"
vec3 diffuseColor = HdGet_FVP_CustomColor() * vertexColors;//Blend the custom color with the vertex colors
vec3 specularColor = vec3(1);//Hardcoded
//Hardcoded to something different than 1.0 just to see a change when
//using only indirect lighting and updating the FVP_CustomColor value
vec3 specularColor = vec3(0.5);

vec3 n = Neye;
vec3 e = normalize(-Peye.xyz);
Expand Down
Loading