Balls... thought of something right after I hit post and lo and behold that was it. SubShader { Pass { CGPROGRAM #pragma vertex vert #pragma fragment frag #pragma fragmentoption ARB_precision_hint_fastest #pragma multi_compile_particles #include "UnityCG.cginc" sampler2D _MainTex; sampler2D _WarpTex; float _WarpInt; float…
OK, so a little more info on the issues with the Input Parameters I'm having in SD 5.0.1 I tried with Float1, Float2, Float3 and Float4. Float1 seems to work as expected, however, all the other Float Inputs get clamped beween 0 and 1 instead of the min/max values when using the clamp option.
Hi, I use the HLSL function Texture2D.Load do retrieve texture information. These informations are 3 Texture Indicies, 3 Texture blend weights and 3 texture tiling vaulues. Now if 2 different texture indicies are blended which have different texture tiling values there are some kind of gridlines showing and i don´t know…
Gave it a try out of curiosity. Here's the multi-sample method in a stripped-down surface shader. I had to change the handedness from the code above to match Unity (changing the sign of the operation when sampling the e and w values from + to - and vice versa).Shader "Debug/Normal Map From Height" { Properties { _Color…
Hey guys, i'm at it again!!! Working on a pbr shader based on the GGX formula that are floating around. Been looking at both UE4 and The Order 1866 tech papers. Everything seems to be going smoothly apart from one thing: the specular hot-spot only appears where the camera is, ie: it follows the camera around, when i would…
Hey guys! I was discussing the placement of floating geo on more awkward shapes with Joost the other day and came up with a solution which worked pretty well. I haven't seen it anywhere before so I thought I'd do a little write up of the technique. I realise you could really easily do the same using NDo, but I know a lot…
I'm having trouble with a shader i've written. up until now everything seems to work the way i want it to work, and i'm happy with my progress. this is my first time writing a shader, and i've not got any programming or code background... so please bear with me. i'm just a character artist trying to expand his skillset! so…
I looked at the HLSL, but I'm not great at figuring out what the code should be. I can't see anything glaringly wrong, but I'm not sure what I'm looking for either. That's why I'm using a node-based editor. :D // -------------------------------------- ShaderVertex --------------------------------------SHADERDATA…
The reflections and shadows look nice. I was also experimenting with area lights and shadows, but this is some next level stuff. Fun stuff. I think you need to wrap your functions inside a struct to be able to reference other structs. #ifndef RAYMARCHING
#define RAYMARCHING struct SDFHitResult
{ float hit; float3 hitpos;…
I'm trying to figure out how to animate a texture by changing the value of the Y Offset on a Voronoi texture by using a value processor node connected to the exposed Offset input parameter. I tried the following tutorial (https://www.youtube.com/watch?v=GApNZ9adh-E&list=PL0HuX8PmDSdbEBwU1KCHsKsNErK2KsSTx&index=10) and it…