sketchub icon

shader

server0_0
0 Likes
0 Comments
9 Downloads

Screenshots

About

This application is designed for creating and executing shaders directly on your mobile device, leveraging the GPU for real-time graphics rendering. You are free to use and modify this code for your own purposes. We wish you a successful implementation.

Supported Variables (GLSL ES 2.0):

Uniforms:

  • float iTime: Time in seconds since start.
  • vec3 iResolution: Screen resolution (x: width, y: height, z: 1.0).
  • vec4 iMouse: Touch coordinates (x, y: position, z: 1.0 if pressed / 0.0 if not, w: unused).
  • vec4 iDate: Current date (x: year, y: month, z: day, w: seconds since midnight).

Attributes:

  • attribute vec4 position: Vertex position for canvas rendering.

Built-ins:

  • glFragCoord (vec4): Current pixel coordinates.
  • glFragColor (vec4): Final RGBA output color.

Data Types:

  • float, int, bool, vec2, vec3, vec4, mat2, mat3, mat4.

©2026 Sketchub | User Policy