I have found many Shaders with extension .psh and .vsh.
They open with any text editor and there’s shader source inside.
Can these shaders be used in Unity3d somehow? Using them directly or converting to other format shader that unity reads or something?
I have no experience what so ever with shaders so I have no idea myself ![]()
Example .psh and .vsh shader:
Blur .psh:
ps.1.4
// c0 ( .25, .5, 1 / 1.5, BlendFactor )
// c1 ( 0.3, 0.59, 0.11, AlphaFactor )
texld r0, t0
texld r1, t1
texld r2, t2
texld r3, t3
texld r4, t4
mul r0, r0, c0.y
mad r0, r1, c0.x, r0
mad r0, r2, c0.x, r0
mad r0, r3, c0.x, r0
mad r0, r4, c0.x, r0
mul r0, r0, c0.z
//mul r0, r0_x2, r0_x2
dp3 r2.rgb, r0, c1
lrp r0.rgb, c0.w, r2, r0
+mov r0.a, c1.w
//dp3 r0.rgb, r0, c1
//+mov r0.a, c1.w
blur .vsh:
vs.1.1
// v0 - Position
// v2 - TexCoord
mov oPos, v0
mov oT0, v2
add oT1, v2, c0
add oT2, v2, c1
add oT3, v2, c2
add oT4, v2, c3
They are both part of one shader I think.
Thanks, ed