Generating a normal map from a height map in compute shader?
The problem is that when I tried converting height map to normal map. The results are wrong. For some reason there is 3 light sources that is emitting from top (green), right (red), and left (blue) in...
View ArticleCompute Shader Outputting Black
Hey All. Just trying to get my head around compute shaders, and just wanted to set an input texture as the output texture. Whenever I do this, I simply get a black output from the processed texture...
View ArticleOrienting VFX Graph Mesh Output to Visualize Direction of Velocity Vector
Hello! I'm working on a GPU based Fluid Engine. I have a Fluid Voxel Mesh that is simulated on the GPU via a Compute Shader. I'm writing information about the mesh to textures and using those in the...
View ArticleCompute shader with Android and URP
Hello ! I work on a VR project with URP and Unity 2021.3. I generate an heatmap on a screenshot to display player positions using compute shader to process data and write a texture. It works well in...
View ArticleBad compute shader performance using millions of threads, even with empty shader
I'm trying to create a Newton particle simulation using compute shaders. In order to visualize it I calculate every particle position and project it onto a RenderTexture. There are several examples...
View ArticleBreaking large scalar field into smaller scalar fields
To start, I have a working script that dispatches a compute shader to genrate a 3d scalar field representatitive of a sphere. this script works fine, but after radii of about 40 units, the mesh begins...
View ArticleAppendStructuredBuffer count is the same as allocated amount for the...
Hi all, I am using a computeshader to populate a unityterrain with trees. However, I am facing issues with the AppendStructuredBuffer. What I want to do, is let a probability check determine if a tree...
View Article