gradients
This commit is contained in:
parent
d6edcc5e06
commit
d07ef8f779
5 changed files with 2 additions and 2 deletions
BIN
zoneb/bin/data/gradient.jpg
Normal file
BIN
zoneb/bin/data/gradient.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 35 KiB |
BIN
zoneb/bin/data/gradient2.jpg
Normal file
BIN
zoneb/bin/data/gradient2.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
BIN
zoneb/bin/data/gradient3.jpg
Normal file
BIN
zoneb/bin/data/gradient3.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 36 KiB |
|
@ -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)));
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue