You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is my first time using SharpGL and I have never used OpenGL before.
I want to read a file in STL format, but it will display triangles incorrectly. (could it be normal vector error that caused the lighting problem?But I have checked all the normal vectors and they are still correct when they are sent to gl)
There is no problem using Windos's 3D Viewer.
Could you tell me where the problem might be?
This is my first time using SharpGL and I have never used OpenGL before.
I want to read a file in STL format, but it will display triangles incorrectly. (could it be normal vector error that caused the lighting problem?But I have checked all the normal vectors and they are still correct when they are sent to gl)
There is no problem using Windos's 3D Viewer.
Could you tell me where the problem might be?
` float[] no_mat = new float[] { 0.0f, 0.0f, 0.0f, 1.0f }; // 无材质颜色
float[] mat_ambient = new float[] { 0.7f, 0.7f, 0.7f, 1.0f }; // 环境颜色
float[] mat_ambient_color = new float[] { 0.8f, 0.6f, 0.2f, 1.0f };
float[] mat_diffuse = new float[] { 0.2f, 0.5f, 0.8f, 1.0f }; // 散射颜色
float[] mat_specular = new float[] { 1.0f, 1.0f, 1.0f, 1.0f }; // 镜面反射颜色
float[] no_shininess = new float[] { 0.0f }; // 镜面反射指数为0
float[] low_shininess = new float[] { 5.0f }; // 镜面反射指数为5.0
float[] high_shininess = new float[] { 100.0f }; // 镜面反射指数为100.0
float[] mat_emission = new float[] { 0.3f, 0.2f, 0.3f, 0.0f }; // 发射光颜色
The text was updated successfully, but these errors were encountered: