Modify relief shader code for greyscale input

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable
electronicfox
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

PostTue Apr 10, 2018 10:38 am

Hi, hoping someone can help me with this.

Im integrating the relief shader code created by Eideran on Unity forums, but I want to modify it to accept a greyscale input instead of sampler2d. I know I need to change the input itself to Float, but I dont know what to change in the code itself to make it work.

User avatar
nuFF3
Location: Hell

PostTue Apr 10, 2018 1:08 pm

I've been using this code snippet for almost 2 years, I've always wanted to change the way the code works but that requires knowledge of shader programming and cg.
I posted about this shader a while back --> viewtopic.php?f=4&t=1975

I've never been able to wrap my head around it in order to change it.
electronicfox
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

PostTue Apr 10, 2018 2:25 pm

User avatar
nuFF3
Location: Hell

PostTue Apr 10, 2018 4:11 pm

I know, same here.
But if you want the same sort of POM shader built into the shader editor (as a node), then I'd go buy Amplify. Not an endorsement or advert for it.
It functions virtually the same as Shader Forge, except for its Unreal engine theme and the fact that it has more specialized nodes, POM and the likes.

I use both shader editors, I like the workflow of Shader Forge better, but for specialized stuff like POM I use Amplify.
electronicfox
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

PostTue Apr 10, 2018 5:07 pm

User avatar
nuFF3
Location: Hell

PostTue Apr 10, 2018 8:15 pm

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Return to “Questions”



Who is online

Online users: No registered users and 1 guest