Skip to content

Commit

Permalink
refactor: fix f0 (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
hhhhkrx authored Jul 22, 2024
1 parent 31f4bf1 commit e8eaeb6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ void PBRFragment(Varyings varyings) {
surfaceData.normal =calculateEyeNormal(varyings.uv, tbn, gl_FrontFacing);
surfaceData.f0 = 0.04;


// Can modify surfaceData here
initBRDFData(surfaceData, brdfData);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ void PBRFragment(Varyings varyings) {
#endif

SurfaceData surfaceData = getSurfaceData(varyings, aoUV, gl_FrontFacing);
surfaceData.f0 = 0.04;

// Can modify surfaceData here
initBRDFData(surfaceData, brdfData);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ void PBRFragment(Varyings varyings) {
#endif

SurfaceData surfaceData = getSurfaceData(varyings, aoUV, gl_FrontFacing);
surfaceData.f0 = 0.04;

// Can modify surfaceData here
initBRDFData(surfaceData, brdfData);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ void PBRFragment(Varyings varyings) {
#endif

SurfaceData surfaceData = getSurfaceData(varyings, aoUV, gl_FrontFacing);
surfaceData.f0 = 0.04;

// Can modify surfaceData here
initBRDFData(surfaceData, brdfData);
Expand Down

0 comments on commit e8eaeb6

Please sign in to comment.