aframe-raytrace-component
An A-Frame component for placing raytraced surfaces in a scene.
API
Property | Description | Default Value |
---|---|---|
shader | ID of a shader in a script tag. | (none) |
transparent | Whether the result of the shader is alpha blended with what's behind it. | false |
backside | Whether the shader is drawn on the frontfaces or the backfaces of the mesh. | false |
Installation
Browser
Install and use by directly including the browser files:
My A-Frame Scene
Or with angle, you can install the proper version of the component straight into your HTML file, respective to your version of A-Frame:
angle install aframe-raytrace-component
npm
Install via npm:
npm install aframe-raytrace-component
Then require and use.
;;