Godot engine - Affine texture mapping (PS1-style)

Channel:
Subscribers:
36,200
Published on ● Video Link: https://www.youtube.com/watch?v=5Pm8GNfquEk



Duration: 0:34
11,853 views
240


Ever want your game to look like it was made for the Playstation 1? Why not I guess.

Vertex shader:
VAR1 = vec4(UV * VERTEX.z,VERTEX.z,0);

Fragment shader:
uniform texture imagem;
DIFFUSE=tex(imagem, VAR1.xy/VAR1.z).rgb;

Code public domain, in case I even had to say that.







Tags:
godot
Game Engine (Software Genre)
Texture Mapping
Shooter Game (Media Genre)