07.10.2020
+ Parent, Name and Flags to objects. ~ Improved Matrix calculations
This commit is contained in:
parent
f865496414
commit
2c00dbd31a
21 changed files with 383 additions and 42 deletions
|
|
@ -25,7 +25,7 @@ namespace SM2D.Shader
|
|||
GL.BindVertexArray(context.Mesh);
|
||||
|
||||
// Vertex Uniforms
|
||||
Uniforms["MVP"].SetMatrix4(context.View * context.World);
|
||||
Uniforms["MVP"].SetMatrix4(context.ModelMaster * context.View * context.World);
|
||||
Uniforms["HasVColor"].SetUniform1(context.Mesh.AttribDataIndex.ContainsKey(3) && context.Mesh.AttribDataIndex[3] != null);
|
||||
|
||||
for (int i = 0; i < context.Instances.Length; i++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue