Skip to content
Snippets Groups Projects
Unverified Commit 574a1706 authored by TheJackiMonster's avatar TheJackiMonster
Browse files

Adjusted trail passed direction for sampling

parent 028f4c5f
No related branches found
No related tags found
1 merge request!106Created initial firework project
......@@ -92,7 +92,7 @@ void main() {
const vec3 p1 = position + offset;
passPos = vec3(u, -1.0f, -1.0f);
passDir = vec3(0, 0, 1);
passDir = vec3(-0.1f * u, +0.2f, 2.0f);
passColor = mix(color, trailColor, u);
passDensity = density;
passSmokeIndex = int(id);
......@@ -101,7 +101,7 @@ void main() {
EmitVertex();
passPos = vec3(u, +1.0f, -1.0f);
passDir = vec3(0, 0, 1);
passDir = vec3(-0.1f * u, -0.2f, 2.0f);
passColor = mix(color, trailColor, u);
passDensity = density;
passSmokeIndex = int(id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment