HNHacker News
TopNewBestAskShowJobs

yyycomposer

56 karma · joined December 3, 2018

submissionscomments
yyycomposer··on Web-Based Vulkan GLSL Ray Tracing Emulator
Currently, compared to Shadertoy, the website is not well known. It would become more educational if more users shared their ideas. Therefore, it is important to spread the word.

Not all samples from your link are applicable for ray tracing, but I have tried to cover some basic ray tracing examples in the tutorial: https://www.gsn-lib.org/docs/nodes/raytracing.php

yyycomposer··on Web-Based Vulkan GLSL Ray Tracing Emulator
Vulkan ray tracing typically uses GLSL as shader language. DirectX Raytracing (DXR) uses HLSL (but is restricted to run only on Windows).

Because Vulkan ray tracing is cross-platform, I have chosen GLSL for this project.

https://github.com/KhronosGroup/GLSL/blob/master/extensions/... https://www.khronos.org/blog/vulkan-ray-tracing-final-specif...

WGSL is the shader language of WebGPU. But I believe WebGPU does not support hardware ray tracing, yet.

yyycomposer··on Web-Based Vulkan GLSL Ray Tracing Emulator
Thanks for your comment. I believe WebGPU does not (yet) support accessing the ray tracing acceleration hardware. Or does it? If yes, this would be great news to me!
yyycomposer··on Web-Based Vulkan GLSL Ray Tracing Emulator
The Vulkan GLSL Ray Tracing Emulator is an online application that aims to simulate the ray tracing shader pipeline from the Vulkan GL EXT ray tracing specification.

To this end, a pre-compiler is provided that translates the ray tracing shader code into a classic WebGL GLSL fragment shader, which generates a direct preview of the shader's output image in the browser.

Most importantly, the emulator also allows exporting the ray tracing shader code as a C++ Vulkan project that can fully exploit the dedicated ray tracing acceleration hardware available in recent graphics cards (such as Nvidia Geforce RTX GPUs or the AMD RX 6000 series).

The web-based emulator is intended for computer graphics education or rapid prototyping of GLSL ray tracing shaders. It does not require a high-end GPU with special ray tracing hardware. Only if you want to run the exported C++ Vulkan stand-alone application, a GPU with ray tracing accelerator hardware is necessary.

A tutorial is available here: https://www.gsn-lib.org/docs/nodes/raytracing.php

This is a short demonstration of the project on YouTube: https://www.youtube.com/watch?v=eMyqDNGkr0g