Greggman

Results 495 comments of Greggman

`vertexAttrib4fv` (and all the other `vertexAttrib???` are **not implemented** The reason it sometime works is the code queries all the attribute data so if you do this ``` gl.vertexAttrib4f(loc, 1,...

I'm sorry I'm not really understanding your question. Maybe you could modify this small sample to show the issue you're running into? https://jsfiddle.net/greggman/b4Lfqfer/

and/or include some screenshots. You can just drag and drop images into these messages

Without deeply diving into what Unity is doing it's hard to know what the issue is WebGL runs in canvas tag in HTML. The canvas is composited with the page....

The issue is this line basecolor=basecolor*2.0; You start of with a baseColor of vec4(1, .3, 0, 1) followed by this line basecolor=basecolor*2.0; baseColor is now vec4(2, .6, 0, 2) In...

I don't know what the issue is but it's certainly possible there's a bug in Unity. Unity can generate difference shaders depending on the platform and depending on the features...

I know this is old but just in case someone else reads this you can add this ``` ``` in your unity html to see the shaders as unity compiles...

Thanks. Yea there were a lot of them. Hopefully I found most of them and didn't mess things up. https://github.com/gfxfundamentals/webgl-fundamentals/commit/c05f9112afd85a4fcd98ddcd0975a47e5ecafce5

Maybe I should learn Geometry Algerba (GA) first and then wrte that article instead. It appears many of the techniques on this site might be dead soon and replaced by...

That's pretty cool. There was a point where I was thinking about porting the site to C++ and be about OpenGL. I feel it's important to have live editable samples...