Skip to content
/ gputracer Public

A simple raytracer which is based on a GLSL compute shader

Notifications You must be signed in to change notification settings

mpue/gputracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPUTracer

GPUTracer is in fact an offline Version of Shadertoy

Although it is in a very early stage, it already can run Shaders from the online site.

Screenshot

View and edit multiple shaders at once.

Screenshot

Currently you can edit shaders, preview and render the images to disk as well.

The shaders from Shadertoy, are not 100% compatible, but will be in the future. Currently you must add the following code to the main shader:

void main() {


ivec2 pixelCoords = ivec2(gl_GlobalInvocationID.xy);
ivec2 dims = imageSize(outputImage); // fetch image dimensions
    
vec4 outColor;

mainImage(outColor,gl_GlobalInvocationID.xy);

imageStore(outputImage, pixelCoords, outColor);
}    

Contribute

Every contributon is welcome at any time.

About

A simple raytracer which is based on a GLSL compute shader

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages