gradients

This commit is contained in:
micuat 2020-10-20 21:22:48 +02:00
parent d6edcc5e06
commit d07ef8f779
5 changed files with 2 additions and 2 deletions

BIN
zoneb/bin/data/gradient.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View file

@ -16,5 +16,5 @@ void main()
// fragColor = vec4(1);//vec4(texture(u_world, texCoordVarying.st).rgb,1);
// fragColor = vec4(texCoordVarying.st/100,1.0,1.0);//vec4(texture(u_world, texCoordVarying.st).rgb,1);
// fragColor = vec4(texture(u_v4l2cam, texCoordVarying.st).rgb,1);
fragColor = vec4(texture(imageTexture, vec2(vTemperature*1024, 0.5)).xyz,max(0, 1 - pow(vAge,4)));
fragColor = vec4(texture(imageTexture, vec2(vTemperature*1600, 0.5)).xyz,max(0, 1 - pow(vAge,4)));
}

View file

@ -78,7 +78,7 @@ void ofApp::setup()
fbos.insert({"ofcam", ofFbo()});
fbos.at("ofcam").allocate(ofGetWidth(), ofGetHeight(), GL_RGBA32F_ARB);
gradient.load("gradient.png");
gradient.load("gradient.jpg");
// 1,000,000 particles
unsigned w = 512;