I'm trying to write a fragment-shader that functions as a chroma-key filter for a specific color (for example make all pixels with a specific green transparent).  The shader I'm writing is for use in WebGL trough PIXI.js.  JSFiddle: https://j...
I learn WebGL step by step via this book. I try to draw three points through using of the buffer (gl.ARRAY_BUFFER) instead of cycle (as I did the same earlier in other samples of the book).     var u_FragColor = gl.getUniformLocation(gl.program, '...
I've already done some projects with c++ and OpenGL, now I'm creating a simple project with html5 and WebGL.   The problem is, after I rotate the camera, the movement is always along the default axes and not along the rotated ones. For exampl...
To start off, I couldn't really find any appropriate community to post this question in so I picked this one. I was wondering how the audio shaders of the popular webGL based shader tool worked, because when, even though I had obviously heard of...
I've just finished porting of my first cloth simulation from opengl to webgl using three.js (can be seen here).  The thing is it looks a bit dull, and I want to add (as i hope i remember correctly from my computer graphics classes) ambient occlus...
I'm trying to learn how to take advantage of gpu possibilities for threejs and webgl stuff so im just analysing code to get some patterns, methods how things are done and I need some code explanation.  I found this example: One million particles,...
I tried to create the snow effect like the one on the bottom page of this link http://blog.edankwan.com/post/my-first-christmas-experiment. Everything else works fine But just can't make the motion blur effect work. Any ideas?   the texture sprit...
I have a ShaderEffect in QtQuick 2.0 and I'm trying to pass a Canvas (which I'm drawing on) to it as it's ShaderEffectSource.  Does anyone know how to do this?  The ShaderEffect is willing to take an Image item as its ShaderEffectSource,...
I have a scene with multiple objects in webgl. For each object I want to use a different vertex and a fragment shader. My first question is, is it possible to have a shader for each object? I am aware it is possible in opengl.  This is something simi...
I need to access the text of a string which I import using HTML from inside another script.  I include the text file in question in the html file:  <script src="shaders/fragmentshader.fs" id=fragmentshader></script>   I then want...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.