Skip to content

mofa-org/makepad-shader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Makepad Shader Demo

A GPU shader demo built with Makepad, featuring raymarched 3D graphics.

Shaders

Gyroid Shader

Raymarched gyroid mathematical surface with:

  • Two interlocking gyroid structures (blue/orange)
  • Diffuse, specular lighting
  • Ambient occlusion
  • Fog and vignette effects
  • Animated camera

Volumetric Orbs (commented out)

3 colored orbiting lights with volumetric glow effect.

Run

cargo run --release

Makepad Shader Learnings

Key constraints discovered during development:

  1. No variable reassignment - Use unique names for each computation step
  2. Avoid time as instance name - Conflicts with built-ins
  3. Inline complex logic - Helper functions can cause silent failures
  4. Manual loop unrolling - For raymarching reliability

Dependencies

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages