Compare commits
No commits in common. "b2183b1d56252ffcb67b9f590b0ed230e305d487" and "cf13e21b6616d3df46442ac12d667fe1618bfcbb" have entirely different histories.
b2183b1d56
...
cf13e21b66
4 changed files with 5 additions and 11 deletions
|
@ -9,7 +9,6 @@ expanding its concept to other "retro" graphic effects.
|
||||||
- Dithering
|
- Dithering
|
||||||
- Downscaling
|
- Downscaling
|
||||||
- PSX Vertex Warping
|
- PSX Vertex Warping
|
||||||
- PSX Texture Warping
|
|
||||||
|
|
||||||
## Acknowledgements
|
## Acknowledgements
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
#version 120
|
#version 120
|
||||||
|
|
||||||
#define pixelSize 2 // [1 2 4 8 16]
|
|
||||||
#define vWarp 0 // psx vertex warp [0 1 2 4 8 16 32]
|
|
||||||
//#define tWarp // psx texture warp
|
|
||||||
|
|
||||||
varying vec2 texcoord;
|
varying vec2 texcoord;
|
||||||
varying vec4 color;
|
varying vec4 color;
|
||||||
varying vec2 lmcoord;
|
varying vec2 lmcoord;
|
||||||
|
@ -11,6 +7,9 @@ varying vec2 lmcoord;
|
||||||
uniform mat4 gbufferModelView, gbufferModelViewInverse;
|
uniform mat4 gbufferModelView, gbufferModelViewInverse;
|
||||||
uniform float viewWidth, viewHeight;
|
uniform float viewWidth, viewHeight;
|
||||||
|
|
||||||
|
#define pixelSize 2 // [1 2 4 8 16]
|
||||||
|
#define vWarp 0 // psx vertex warp [0 1 2 4 8 16 32]
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
texcoord = (gl_TextureMatrix[0] * gl_MultiTexCoord0).xy;
|
texcoord = (gl_TextureMatrix[0] * gl_MultiTexCoord0).xy;
|
||||||
lmcoord = (gl_TextureMatrix[1] * gl_MultiTexCoord1).xy;
|
lmcoord = (gl_TextureMatrix[1] * gl_MultiTexCoord1).xy;
|
||||||
|
@ -26,9 +25,5 @@ void main() {
|
||||||
#else
|
#else
|
||||||
gl_Position = ftransform();
|
gl_Position = ftransform();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef tWarp
|
|
||||||
gl_Position /= abs(gl_Position.w);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,6 @@ value.vWarp.4=Medium (4x)
|
||||||
value.vWarp.8=High (8x)
|
value.vWarp.8=High (8x)
|
||||||
value.vWarp.16=Extreme (16x)
|
value.vWarp.16=Extreme (16x)
|
||||||
value.vWarp.32=Silly (32x)
|
value.vWarp.32=Silly (32x)
|
||||||
option.tWarp=Texture Warping
|
option.tWarp=Affine Textures
|
||||||
option.tWarp.comment=Emulates affine texture mapping responsible for warping textures on the PSX
|
option.tWarp.comment=Emulates affine texture mapping responsible for warping textures on the PSX
|
||||||
|
|
||||||
|
|
|
@ -3,5 +3,5 @@ sliders=pixelSize hueSteps satSteps valSteps rgbSteps vWarp
|
||||||
screen=pixelSize <empty> [COLOR] [PSX]
|
screen=pixelSize <empty> [COLOR] [PSX]
|
||||||
|
|
||||||
screen.COLOR=colorMode dithering rgbSteps <empty> hueSteps satSteps valSteps
|
screen.COLOR=colorMode dithering rgbSteps <empty> hueSteps satSteps valSteps
|
||||||
screen.PSX=vWarp tWarp
|
screen.PSX=vWarp
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue