mirror of
https://github.com/ctruLua/ctruLua.git
synced 2025-10-27 16:39:29 +00:00
As the color order of the sf2dlib changed, you have to change it in your code, or use the color.hex() function. To fix the problems, just change "0xRRGGBBAA" to "0xAABBGGRR". Also, the shader compiler changed to Picasso, so you'll need it in order to compile. https://github.com/fincs/picasso
30 lines
549 B
GLSL
30 lines
549 B
GLSL
; Outputs
|
|
.out outpos position
|
|
.out outtc0 texcoord0
|
|
.out outclr color
|
|
|
|
; Inputs
|
|
.alias inpos v0
|
|
.alias inarg v1
|
|
|
|
; Uniforms
|
|
.fvec projection[4]
|
|
|
|
; Constants
|
|
.constf RGBA8_TO_FLOAT4(0.00392156862, 0, 0, 0)
|
|
|
|
.proc main
|
|
; outpos = projection * in.pos
|
|
dp4 outpos.x, projection[0].wzyx, inpos
|
|
dp4 outpos.y, projection[1].wzyx, inpos
|
|
dp4 outpos.z, projection[2].wzyx, inpos
|
|
dp4 outpos.w, projection[3].wzyx, inpos
|
|
|
|
; outtc0 = in.texcoord
|
|
mov outtc0, inarg
|
|
|
|
; outclr = RGBA8_TO_FLOAT4(in.color)
|
|
mul outclr, RGBA8_TO_FLOAT4.xxxx, inarg
|
|
|
|
end
|
|
.end
|