Attached is a patch demoing what I’ve been trying to do.
I’ve got a gourand shaded model working (kind of, lighting looks a bit weird) but thought I’d try and use the LitSphere which is where its gone a bit wierd.
Comments are in the patch.
Open ParticleSystem_07_Shaded (emitterCol, rndSize).v4p
As soon as you uncomment these lines in the VS
// float4 Tangent : TANGENT;
// float4 Binormal : BINORMAL;
the shader stops outputing anything, despite the floats not even being used in the shader yet!
If you comment out uint ii : SV_InstanceID; it works again.
So whats happening here!
Any explainations welcome :)
Any solutions even more welcome! Although I do want to know what I’m doing wrong, so I don’t go and do it again ;)
LitShere particles No worky (1.5 MB)