I'm trying to port an FX Composer shader to RenderMonkey. For some reason the output doesn't look the same as the FX Composer update.
I think something is foobar in the second pass.
http://tagenigma.com/qa/Unity3d/RenderMonkeyRelief.jpg
Here are the FX Composer project files, images, and RenderMonkey xml file.
The problem is with your tangent space matrix.
To fix it, add TANGENT, BINORMAL and NORMAL to the Stream Mapping. The index should be 0, data type should be FLOAT3 and Attribute Name should be rm_Tangent, rm_Binormal and rm_Normal.
I'm a little too noob with the RenderMonkey interface to do that?
I'm guessing it's not a note added to the StreamMapping.
I added Render Monkey variables like you said, but after changing the three variables to float3, my diffuse color disappeared in Pass 1.
How do I change the index to 0?
I tried to create variables of type float3 named as you said. I added the variables to each pass. And I made sure they are in the order specified. But it's still not working...
http://tagenigma.com/qa/Unity3...onkey_stream_issue.jpg
I assumed this data should be coming from the model and not a variable...
You are doing it wrong. Remove what you added recently. Double click on the Stream Mapping, and add the variables I mentioned.
Originally posted by: bpurnomo You are doing it wrong. Remove what you added recently. Double click on the Stream Mapping, and add the variables I mentioned.
Thanks for your help it worked!
Nice job!