Giter Site home page Giter Site logo

bielwenass / melion-raymarcher Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 1.13 MB

A primitive raymarching WebGL renderer for HTML canvas built on Vue.js

Home Page: https://bielwenass.com

JavaScript 17.85% HTML 1.98% Vue 58.36% GLSL 21.80%
canvas webgl raymarching vue fractals fractal-rendering interactive

melion-raymarcher's Introduction

Melion Raymarcher

A primitive raymarching WebGL renderer for HTML canvas made as a Vue.js component for convenience. It can quite easily be altered to work with vanilla js if you wish so. Distance function could use a lot of work to render actual random fractals. I haven't quite figured it out yet.

Demo is available for you to play with at bielwenass.com.

Camera movement

Rotate the camera by dragging on canvas, change FOV with the mouse wheel.

  • w and s keys for Z axis
  • a and d keys for X axis
  • q and e keys for Y axis

Step size parameter controls the movement speed. Hold shift for 10x movement speed.

Default view after opening the page:

Feel free to float around and explore inside the structure.

Use controls on the right to tweak the rendering parameters and immediately see how they affect the image.

Local setup

Node.js v17 is recommended.

git clone https://github.com/Bielwenass/melion-raymarcher.git
cd melion-raymarcher
yarn
yarn serve

This is a simple barebones renderer, edit fragment.glsl to create your own shaders. You can also experiment with the default one.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.