Slime-Simulation | Project created with Unity | Game Engine library
kandi X-RAY | Slime-Simulation Summary
kandi X-RAY | Slime-Simulation Summary
Project created with Unity 2020.3. Based on this paper:
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Slime-Simulation
Slime-Simulation Key Features
Slime-Simulation Examples and Code Snippets
Community Discussions
Trending Discussions on Slime-Simulation
QUESTION
I'm a shader newbie and I'm trying to port an HLSL shader to GLSL.
What is the GLSL equivalent for RWTexture2D whatever;
?
I need to programmatically create a texture inside a shader.
Longer version:I'm trying to port the "slime shader" from this video to GLSL, and load it in a web page (at the moment I'm using Three.js).
I managed to code the pseudo-random hash function and display the noise on screen, but now I'm stuck.
(Here's the HLSL shader code)
In the original shader there is this: RWTexture2D TrailMap;
and I can't find a way to make something similar in my shader. All the info that I have found online is about loading external textures, but what I need is a texture that is created and modified inside the shader (and it seems to me that the way GLSL handles textures is not very beginner friendly).
I also tried using this converter. What I get is uniform image2D TrailMap;
but it gives me this error:
'image2D' : Illegal use of reserved word
What am I missing?
...ANSWER
Answered 2021-Apr-08 at 14:14WebGL doesn't have access to image load/store, the ability to modify image data arbitrarily within shaders. The converter is doing the right thing, but WebGL simply doesn't provide access to this hardware functionality.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Slime-Simulation
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page