- Home /
Question by
MugenAttack · Apr 18, 2015 at 10:59 AM ·
shadermesh
Standard shader not working on procedural mesh
my mesh generated from code isn't allowing shadows to be cast on it or giving off the same effect of the new standard shader in unity 5.
here is an image of whats happening.
uproced.png
(186.4 kB)
Comment
You mentioned you generate this mesh yourself. Did you set the normals and UV arrays for the mesh too? The normal array will define how light falls on the mesh, and the UVs define how to map a texture onto the mesh.
got it working properly. i used mesh.recalculateNormals() to apply normals to the mesh.
also thanks.
Your answer
![](https://koobas.hobune.stream/wayback/20220613193410im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to determine shader center? 0 Answers
Vertex Shader and Non-uniformly scaled meshes 1 Answer
Need help with using world position in shader 1 Answer
Access mesh for TextMesh or GuiText 2 Answers