Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
claygl-advanced-renderer
Advanced tools
Readme
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
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
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).