-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(pbr): extract fullscreen vert + use vTexCoord0 always instea…
…d of vTexCoord - extract quad to utils - use fullscreen vert
- Loading branch information
Showing
16 changed files
with
70 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...haders/shaders/skybox/sky-env-map.vert.js → ...aders/shaders/pipeline/fullscreen.vert.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
export default /* glsl */ ` | ||
attribute vec3 aPosition; | ||
attribute vec2 aPosition; | ||
attribute vec2 aTexCoord0; | ||
varying vec2 vTexCoord0; | ||
void main() { | ||
gl_Position = vec4(aPosition, 1.0); | ||
vTexCoord0 = aTexCoord0; | ||
gl_Position = vec4(aPosition, 0.0, 1.0); | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
systems/renderer/pex-shaders/shaders/pipeline/overlay.frag.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
export default /* glsl */ ` | ||
precision highp float; | ||
varying vec2 vTexCoord; | ||
varying vec2 vTexCoord0; | ||
uniform sampler2D uTexture; | ||
void main() { | ||
gl_FragColor = texture2D(uTexture, vTexCoord); | ||
gl_FragColor = texture2D(uTexture, vTexCoord0); | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
systems/renderer/pex-shaders/shaders/reflection-probe/blit-to-oct-map-atlas.frag.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
systems/renderer/pex-shaders/shaders/reflection-probe/fullscreen-quad.vert.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
export default /* glsl */ ` | ||
attribute vec2 aPosition; | ||
attribute vec2 aTexCoord; | ||
attribute vec2 aTexCoord0; | ||
varying vec2 vTexCoord; | ||
varying vec2 vTexCoord0; | ||
void main() { | ||
vTexCoord = aTexCoord; | ||
vTexCoord0 = aTexCoord0; | ||
gl_Position = vec4(aPosition, 0.0, 1.0); | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
import skyboxVert from "./skybox.vert.js"; | ||
import skyboxFrag from "./skybox.frag.js"; | ||
import skyEnvMapVert from "./sky-env-map.vert.js"; | ||
import skyEnvMapFrag from "./sky-env-map.frag.js"; | ||
|
||
export default { | ||
skybox: { vert: skyboxVert, frag: skyboxFrag }, | ||
skyEnvMap: { vert: skyEnvMapVert, frag: skyEnvMapFrag }, | ||
skyEnvMap: { frag: skyEnvMapFrag }, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters