Comments (2)
Would you mind filing a PR with your fix? The addition looks correct. getInternalFormat()
is the only place where something is missing for supporting RGIntegerFormat
.
BTW: In your fiddle, you are not creating the instance of WebGLCubeRenderTarget
correctly. The ctor has only two parameters, not three. Besides, position
shader attributes are not of type vec4
but vec3
.
In any event, adding your code makes the fiddle work without errors.
from three.js.
Ok, thanks, I'll create a PR.
Fixed the WebGLCubeRenderTarget
construction in the fiddle for posterity: https://jsfiddle.net/h3e4zncb/1/
The position
attribute is vec4
, I'm using a RawShaderMaterial. Even if the underlying buffer data is vec3
, WebGL will automatically set the 4th component to 1.0
.
From https://registry.khronos.org/OpenGL/specs/es/3.0/es_spec_3.0.pdf:
Unspecified y and z components are implicitly set to 0.0 for floating-point array types and 0 for integer array types.
Unspecified w components are implicitly set to 1.0 for floating-point array types
and 1 for integer array types.
from three.js.
Related Issues (20)
- 【TransformControls】Unable to select after setting the layer HOT 1
- Large time delta values using Timer when page is not visible (in Firefox) HOT 10
- Add an API to disable TransformControls's XYZ, XY, YZ, XZ and the extra 'x', 'y' and 'z' in the visual controls. HOT 5
- Only render the last viewport normally when setting scene.background HOT 3
- Google Chrome Autoplay policy changes affecting the usage of AudioListener and AudioLoader class HOT 4
- GTAO/SSAO alter transparent materials appearence HOT 4
- Provide an iterative version of Object3D.traverse() HOT 2
- WebGLBackend: Support for Accessing External Elements in StorageBuffer HOT 4
- Raytracing material & lighting HOT 3
- move addons out of the examples folder HOT 1
- WebGLRenderer: Setting Scissor and Viewport is imprecise due to rounding issues HOT 2
- Minor Improvements to Lensflare Module HOT 5
- 3DM Exporter: Possible new addition HOT 2
- TransformControl change X and Z when rotation happen on Y axis HOT 1
- render error after WKWebView crash HOT 3
- WebXR: Make Depth sensing occlusion tunable
- After the InstancedMesh instance changes its position once, why can’t the ray hit it again? HOT 2
- WebGPURenderer: Add support for ShadowMaterial
- WebGPURenderer: VideoTexture produces multiple warnings in the console
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from three.js.