Skip to content

Commit

Permalink
Skybox fix for engine v1.70 (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
slimbuck authored May 3, 2024
1 parent 3771b5c commit 709df5b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "model-viewer",
"version": "4.10.0",
"version": "4.10.1",
"author": "PlayCanvas<[email protected]>",
"homepage": "https://playcanvas.com",
"description": "PlayCanvas glTF Viewer",
Expand Down
2 changes: 1 addition & 1 deletion src/projective-skybox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void main(void) {
vec3 final_dir = mix(view_dir, env_dir, tripodParams.w) * cubeMapRotationMatrix;
vec3 linear = $DECODE(textureCube(texture_cubeMap, fixSeamsStatic(final_dir * vec3(-1.0, 1.0, 1.0), $FIXCONST)));
vec3 linear = SKYBOX_DECODE_FNC(textureCube(texture_cubeMap, fixSeamsStatic(final_dir * vec3(-1.0, 1.0, 1.0), SKYBOX_MIP)));
gl_FragColor = vec4(gammaCorrectOutput(toneMap(processEnvironment(linear))), 1.0);
}
Expand Down

0 comments on commit 709df5b

Please sign in to comment.