cleaned up particlefire example
really dug into example to learn and just _leaving the example better then I found it_ but cleaning up some unused values and swizzle redudency in shaders. Tested on desktop and android
This commit is contained in:
parent
6e28986d5d
commit
7e15234145
7 changed files with 15 additions and 21 deletions
|
|
@ -106,7 +106,6 @@ public:
|
|||
glm::mat4 model;
|
||||
glm::mat4 normal;
|
||||
glm::vec4 lightPos = glm::vec4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
glm::vec4 cameraPos;
|
||||
} uboEnv;
|
||||
|
||||
struct {
|
||||
|
|
@ -709,7 +708,6 @@ public:
|
|||
uboEnv.projection = uboVS.projection;
|
||||
uboEnv.model = uboVS.model;
|
||||
uboEnv.normal = glm::inverseTranspose(uboEnv.model);
|
||||
uboEnv.cameraPos = glm::vec4(0.0, 0.0, zoom, 0.0);
|
||||
memcpy(uniformBuffers.environment.mapped, &uboEnv, sizeof(uboEnv));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue