-
-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would It be Possible to convert this shader? #18
Comments
Hi dear friend |
p.xz*=fixed2x2(-0.416,-0.91,0.91,-0.416); p.xz = mul(p.xz,fixed2x2(-0.416,-0.91,0.91,-0.416); Hi I just converted syntax
raymarching example:
|
how do I fix this line? |
it's because glsl compiler float3(x) know as float3(x,x,x) color=lerp(fixed3(length(color),length(color),length(color)),color,SATURATION); or color=lerp(fixed3(1,1,1)*length(color),color,SATURATION); |
How Hard Would It Be To COnvert This Shader
https://www.shadertoy.com/view/Xtf3Rn
i get stuck at lines such as this: p.xz*=fixed2x2(-0.416,-0.91,0.91,-0.416);
Also when using the IO version i get this error when ported to unity
float3 lightdir=normalize(vec3(0.5,-0.3,-1.));
unity does not like this line
Unity Version 2017.4.28.f1
The text was updated successfully, but these errors were encountered: