• Status: Closed
• Penyertaan diterima: 12
• Pemenang: Jeffersonben

Make us a blossoming flower using shader code!

Create a 2d or 3d representation of a blossoming flower, that expands/contracts using a sinusoidal signal (supplied in boilerplate code).

The shader code must be able to run using glslViewer: https://github.com/patriciogonzalezvivo/glslViewer

Flowers will be judged on how relaxing they look, and if they have a “zen” aesthetic.

#ifdef GL_ES
precision mediump float;
#endif

uniform vec2 u_mouse;
uniform vec2 u_resolution;
uniform float u_time;

uniform sampler2D u_tex0;
uniform vec2 u_tex0Resolution;

void main (void) {
vec2 p = (2.*gl_FragCoord.xy-u_resolution.xy) / u_resolution.y;
float t = u_time;

float LFO = (1. + sin(t * 0.5))*0.5; // you MUST use this to modulate the flower

float amp = 15. / ((60. + LFO*60.) * abs((1.5+(1.-LFO)*3.)*length(p)-1.) );

vec3 c = vec3(amp);
gl_FragColor = vec4(c, 1);
}

Winner

## Maklum balas Majikan

“Followed instructions, self-managed very well.”

muviklabs, United States.

## Papan Penjelasan Umum

• ###### kuntalkuilaya079
• 3 minggu yang lalu

Hi, Good day! Question: Do you want the opening and closing of the petals with only that format of sine curve with different values? Or, you want to put this sine curve in a bunch of different functions? Is there any restriction of use of functions?

• 3 minggu yang lalu

## Bagaimana untuk mulakan dengan peraduan

• Siarkan Peraduan Anda Cepat dan mudah

• Dapatkan Bertan-tan Penyertaan Dari serata dunia

• Anugerahkan penyertaan terbaik Muat turun fail-fail - Mudah!

atau Sertai kami Hari Ini!