- Home /
Question by
NY55 · Sep 15, 2021 at 02:49 AM ·
shaderparticlesparticlesystemshader writing
ParticleSystem Transform Scale × Shader UV Tiling
Hello.
I created a shader that changes the UV tiling based on size.
Quad works fine.
It doesn't work with ParticleSystem.
What should I do?
float3 recipObjScale = float3( length(unity_WorldToObject[0].xyz), length(unity_WorldToObject[1].xyz), length(unity_WorldToObject[2].xyz) );
float3 objScale = 1.0/recipObjScale;
fixed2 Multiply = (i.texcoord*objScale.rb);
unity-shader-002.jpg
(120.5 kB)
Comment
Answer by NY55 · Sep 15, 2021 at 03:49 AM
I was able to change the UV tiling by receiving the particle size from the texcoord.
However, what I would like is to receive the particle's Transform Scale.
Is there any way to do this?
Your answer
Follow this Question
Related Questions
My particles glow at night how can I stop the glowing 0 Answers
Fire outline shader 1 Answer
Unity inbuilt distorsion shader? 1 Answer
Make Start Color setting in particle system control _EmissionColor 1 Answer
Glowing Particle 3 Answers