Skip to content

Commit

Permalink
minor extension
Browse files Browse the repository at this point in the history
  • Loading branch information
feiy committed Feb 9, 2024
1 parent 6b19b58 commit 5b962e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ThreeEngine/renderers/routines/StandardRoutine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,9 @@ vec3 getIrradiance(in vec3 normal)
vec3 getRadiance(in vec3 worldPos, in vec3 reflectVec, float roughness, in vec3 irradiance)
{
vec3 rad = getReflRadiance(reflectVec, roughness);
#if HAS_ENVIRONMENT_MAP
rad *= uIntensity;
#endif
if (roughness > 0.053)
{
Expand Down
3 changes: 3 additions & 0 deletions ThreeEngine/volume/routines/DrawIsosurface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,9 @@ vec3 getIrradiance(in vec3 world_pos, in vec3 normal)
vec3 getRadiance(in vec3 world_pos, in vec3 reflectVec, float roughness, in vec3 irradiance)
{
vec3 rad = getReflRadiance(reflectVec, roughness);
#if HAS_ENVIRONMENT_MAP
rad *= uIntensity;
#endif
if (roughness > 0.053)
{
vec3 rad2 = irradiance * RECIPROCAL_PI;
Expand Down

0 comments on commit 5b962e9

Please sign in to comment.