Converting GLSL Shaders
I have found a GLSL shader which I would like to convert to Cg/HLSL so I can use it in Unity5. Can someone lead me to a decent site that would explain how I do this change or if someone can explain themselves I would appreciate it.
I know there are tools out there for creating shaders from scratch but this one is specific in that it acts as fur. The shader is called furball and is on the ShaderToy website (here is the link) if you are interested to see what I wish to convert.
Thanks in advance.
Answer by JonathanCzeck · Dec 06, 2015 at 04:05 AM
I glanced over this blog post. It seems to cover what you need to know, even specifically for ShaderToys:
https://alastaira.wordpress.com/2015/08/07/unity-shadertoys-a-k-a-converting-glsl-shaders-to-cghlsl/
Thank you. I had looked at that previously but I was hoping to have something a little easier to understand (as I am totally new to shaders). However, it seems like this is my best option.
Answer by SentryGames · Sep 29, 2017 at 12:04 PM
Hi @adelphiaUK,
I would like to convert the same shader but i did not find any clue to convert texturelod method. Did you manage to get the furball shader working ? And did you agree to share it ?
Answer by adelphiaUK · Sep 29, 2017 at 12:24 PM
@NarLoke Unfortunately no I didn't get it converted. I would definitely have shared it if I had.
Ok, if i managed to get something i will share there :) Thx
Your answer
Follow this Question
Related Questions
Exporting graphically created shaders in Visual Studio to Unity. [.glsl to .shader] 0 Answers
Porting UnityCG shader to HLSL to use on UniversalRP 0 Answers
Custom shader samples pixels per-texture rather than from the screen 1 Answer
Opaque ("overwrite") Projector Shader for Decal Projection 1 Answer
Shader - Cant use TransformObjectToWorldNormal and TransformObjectToWorld 0 Answers