mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
beginning of suitting textures for animation
This commit is contained in:
+2
-8
@@ -9,14 +9,8 @@ const int numParticles = 1;
|
||||
layout (location = 0) out vec4 FragColor;
|
||||
layout (location = 1) out vec4 BrightColor;
|
||||
|
||||
struct Texture{
|
||||
float mixRatio;
|
||||
sampler2D pastTexture, nextTexture;
|
||||
bool animated;
|
||||
};
|
||||
|
||||
uniform Texture tex;
|
||||
uniform float lifePercentage[numParticles];
|
||||
uniform sampler2D tex;
|
||||
uniform float lifePercentage[500];
|
||||
uniform vec4 startColor, endColor;
|
||||
|
||||
void main(){
|
||||
|
||||
Reference in New Issue
Block a user