rtx-on.js

Drop the box shadow, your web pages deserve proper ray tracing.

rtx-on.js is a JavaScript library that enhances web pages by simulating in real time realistic lights and shadows using ray tracing.

Try it

Use it

Add to your webpage:


<script type="importmap">
{
  "imports": {
    "webgl-path-tracing": "https://webgl-path-tracing.steren.fr/webgl-path-tracing.js",
    "sylvester": "https://webgl-path-tracing.steren.fr/sylvester.src.js",
    "rtx-on": "https://rtx-on.steren.fr/rtx-on.js"
  }
}
</script>

<script type="module">
import * as rtx from 'rtx-on';
window.onload = function() {
  rtx.on();
}
</script>

or install using npm:

npm install rtx-on