Pass uniforms to Filter's shader
I wanna implement this shader (https://www.shadertoy.com/view/MslGWN#) in PhaserJS state. So i transformed the shader to WebGL style. I overload Phaser.Filter’s update function to pass iChannel...
View ArticleUnderstanding webgl min/mag filter texture artifacts in orthographic projection?
Summary Flickering and shimmering of image plotted on a geometry where the viewport exceeds the size of the screen. I am using an orthographic projection for the camera. In this case, it is tied to...
View ArticleHow to hide a post-processed mesh outline when/where the mesh is hidden
I’m working on setting up an active outline in my 3d engine, a highlight effect for selected 3d characters or scenery in the screen. After working with the stencil buffer and getting some...
View ArticleUnstable behavior when applying impulse
I created a video that describes the problem since it very hard to explain it. Basically, using physi.js, I am applying random impulse on the object. In the video, at 0:17 the problem begins when the...
View ArticleUnity — custom shader behaves differently on WebGL deployment (correct) and...
I started working on shaders and lighting on Unity3D 5.2.1f1. I set up a scene where the sun object rotates the directional light (the only light in the scene) based on its position to simulate a light...
View ArticleGPU Spatial Clustering
I have a around 100k points on the screen (that might update). 2D points. The goal is to cluster them into groups, by a constant distance. Meaning, finding groups of points that the distance between...
View ArticleCell Based Simulation
I’m working on a cell based simulation in a pixel shader (webgl, shadertoy.com specifically), but am having some challenges trying to make the simulation consistent. Each cell (pixel) has the following...
View ArticleUnity WebGL not loading on chrome
I’ve made a simple game but when I tried to load this on chrome its not loading. I am building for WebGL (HTML 5). I am getting these errors when the page loads. Unity version – 5.3.1f1 Chrome version...
View ArticleUnity 3D error when compiling to WebGL: Destination directory not found
When I try to compile my Unity project to WebGL in Development mode on Windows 8.1 (and with the latest version of Unity), I receive the following errors (the first one is truncated because it’s really...
View ArticleDetermining if webgl code will work on a variety of hardware
I have some javascript/webgl code. I want to have some idea of whether it will work for someone with a different browser/machine/gpu. This is difficult, because there’s so much diversity in support for...
View Article