Category "webgl"

WebGL mix instanced sprite rendering

I want to render some instanced sprites using drawArraysInstancedANGLE. The problem is that when i set vertexAttribDivisorANGLE for the buffer to be instanced,

Unity - WebGL build works fine into the localhost but not into the webserver

I wanted to create a WebGL game with Unity. So i created my version of the game, i built it and works just fine in the localhost that unity launches after the b

why is the face drawn throught stencil buffer is rendered on top?

code: https://jsfiddle.net/yuqingzhijie/9wt7syn5/11/ https://jsfiddle.net/yuqingzhijie/9wt7syn5/42/ I'm implementing section drawing, but I don't know how to so

Tizen Web Application: WebGL canvas not properly rendered

I'm developing a Tizen web application for kiosks based on Samsung's Smart TVs and I need to add a shape drawn by WebGL inside an html canvas. The problem: when

how to apply displacement map to a vertex shader in Webgl?

Hello I have an image of displacement like this. I want to make the surface displace more when the part of image getting darker. Here is my code in vertex shad

How to enable WebGL in Headless Chrome >= 96 within selenium-docker project to run Chrome inside a docker container without XVFB

I'm using selenium-docker project to run chrome inside a docker container, without XVFB (START_XVFB=false). I want to use webgl support. With chrome v95 and low

WebGL2 how to draw feedback buffer to texture that is passed to shader uniform

Apologies in advance if I don't have all the right terminology, I'm still learning and it takes time to get your head around GPU coding. Anyway, I have a transf

How to prevent WebGL from clipping outside bounds when drawing a wavy circle?

I have a shader that draws a bunch of instanced circles, and it works great! It works by basically drawing a bunch of rectangles at every given location, and th

Setting textures on a model (Maya or Blender) via Java?

My task is: after selecting the user settings in the web application, this application must create a 3D model according to its settings (this building model wit

JavaScript/WebGL take periodically mouse coordinates from one click event until the second one

I have a program that simulates a cloth (made by spring and vertices) in WebGL. What the program must do is to permit the user to click on a point in the cloth,

Chrome DevTools - Set WebGL version

In Chrome DevTools, is it possible to set the version of WebGL and/or disable WebGL for testing purposes?

Implementation of BHV intro basic custom webgl program

I found basic information : https://research.cs.wisc.edu/graphics/Courses/cs-838-1999/Jeff/BVH.html https://en.wikipedia.org/wiki/Biovision_Hierarchy But i need

WebGL Hardware Acceleration - failIfMajorPerformanceCaveat no longer working on Chrome

Previously I was able to detect whether or not the browser has Hardware Acceleration enabled, by using the failIfMajorPerformanceCaveat flag. const

WebGL Hardware Acceleration - failIfMajorPerformanceCaveat no longer working on Chrome

Previously I was able to detect whether or not the browser has Hardware Acceleration enabled, by using the failIfMajorPerformanceCaveat flag. const

firebase is not being recognized in Unity webGL Build

I have set up a test project in order to test Firebase with unity webGL builds. I have created a *.jslib plugin to keep my js functions in there : mergeInto(Lib

How to include shaders as external files

Is there a way to include this shader code as an external vertexShader.js without quotes and include between "script" tags? var vertCode = 'attribute vec3 coor

WebGL2: what is up with max elements indices/vertices?

I'm developing a web component using WebGL2 (and three.js) with OES_element_index_uint enabled. I'm drawing a geometry using indexed vertices and I'm seeing th

I have a Unity WebGL game uploaded. Is it possible to manually create a persistent directory in /idbfs inside IndexedDB?

In the Unity project, I attached a script in an empty game object, and the code is demonstrated below: Is it possible to create a persistent directory myself? p

Unity WebGL unsupported MIME type

I'm starting a new blank project for webgl. I'm using Unity 2020.3.26f1 (LTS). When I launch the project on my wamp server I get this error: wasm streaming comp

Render an array of rgb pixels on a canvas

I have this problem, I have a socket that sends me packets each one containing a row of a frame. Using python I reconstruct the full-frame as an array of RBG pi