
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
claygl-advanced-renderer
Advanced tools
ClayGL advanced renderer provide a full render pipeline which includes:
npm install claygl
npm install claygl-advanced-renderer
<html>
<head>
<meta charset="utf-8">
<script src="../node_modules/claygl/dist/claygl.js"></script>
<script src="../dist/claygl-advanced-renderer.js"></script>
</head>
<body>
<div id="main"></div>
<script type="text/javascript">
clay.application.create('#main', {
width: window.innerWidth,
height: window.innerHeight,
autoRender: false,
init: function (app) {
this._advancedRenderer = new ClayAdvancedRenderer(app.renderer, app.scene, app.timeline, {
// See full graphic configuration at
// https://github.com/pissang/claygl-advanced-renderer/blob/master/src/defaultGraphicConfig.js
shadow: true
});
// Create a perspective camera.
// First parameter is the camera position. Which is in front of the cube.
// Second parameter is the camera lookAt target. Which is the origin of the world, and where the cube puts.
this._camera = app.createCamera([0, 2, 5], [0, 0, 0]);
// Create a sample cube
this._cube = app.createCube({
color: 'red'
});
// Create a ground
this._ground = app.createPlane();
this._ground.rotation.rotateX(-Math.PI / 2);
this._ground.scale.set(2, 2, 1);
// Create a directional light. The direction is from top right to left bottom, away from camera.
this._mainLight = app.createDirectionalLight([-1, -2, -1]);
this._advancedRenderer.render();
}
})
</script>
</body>
</html>
FAQs
Advanced renderer for ClayGL
The npm package claygl-advanced-renderer receives a total of 1 weekly downloads. As such, claygl-advanced-renderer popularity was classified as not popular.
We found that claygl-advanced-renderer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.