Flower Shader Code Competition

  • Status: Closed
  • Prize: $250
  • Entries Received: 12
  • Winner: Jeffersonben

Contest Brief

Flower Shader Code Competition

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.

To participate, submit your shader code.

Please use this starter code:

#ifdef GL_ES
precision mediump float;

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);

Recommended Skills

Employer Feedback

“Followed instructions, self-managed very well.”

Profile image muviklabs, United States.

Top entries from this contest

View More Entries

Public Clarification Board

  • kuntalkuilaya079
    • 4 weeks ago

    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?

    • 4 weeks ago

How to get started with contests

  • Post your contest

    Post Your Contest Quick and easy

  • Get tons of entries

    Get Tons of Entries From around the world

  • Award the best entry

    Award the best entry Download the files - Easy!

Post a Contest Now or Join us Today!