Search Issue Tracker
Fixed
Fixed in 2023.3.0b1
Votes
0
Found in
2023.3.0a13
2023.3.0a15
Issue ID
UUM-56958
Regression
No
[VFX Graph] HLSL Block don't work with ShaderGraph Output Context
*How to reproduce*
* Create a vfxg from the Starter Template (Simple loop)
* Right Click and select Convert Output
* Choose a ShaderGraph Quad output
* Create an simple ShaderGraph
* Make sure to enable VFX Graph Support.
* Create a HLSL block in this Output Context
* !image-2023-11-27-14-38-52-209.png|width=195,height=342!
*Alternative Reproduction Step:*
-Import the Attached Package
-Open the new VFX.vfx
-Notice that you should have errors in the console
-Disable the hlsl block in the output context and compile the vfx
-Notice that this time the vfx compile without issue.
*Expected Result:*
We should see our VFX and we should have the ability to use the HSLS default block to offset the particles Position.
*Actual Result:*
With a ShaderGraph Output and HLSL Block inside it, the VFX doesn't compile anymore and throw errors in the Console.
Note, If your Sytem have two outputs both with an HLSL Block and that one is a regular Output and the other is an ShaderGraph output. No compilation errors will be thrwon in the console. But Only the regular output will draw particles and the Shadergraph Output still won't work.
{code:java}
Shader error in 'Hidden/VFX/New VFX/Simple Loop/B/Render Quad': unrecognized identifier 'VFXAttributes' at line 3884 (on d3d11)
Compiling Subshader: 0, Pass: DepthForwardOnly, Vertex program with <no keywords>
Platform defines: SHADER_API_DESKTOP UNITY_ENABLE_DETAIL_NORMALMAP UNITY_ENABLE_REFLECTION_BUFFERS UNITY_LIGHTMAP_FULL_HDR UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS
Disabled keywords: SHADER_API_GLES30 UNITY_ASTC_NORMALMAP_ENCODING UNITY_COLORSPACE_GAMMA UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_RGBM_ENCODING UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_DXT5nm UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_VIRTUAL_TEXTURING _SURFACE_TYPE_TRANSPARENT _TRANSPARENT_REFRACTIVE_SORT _TRANSPARENT_WRITES_MOTION_VEC
{code}
{code:java}
Shader error in 'Hidden/VFX/New VFX/Simple Loop/B/Render Quad': unrecognized identifier 'VFXAttributes' at line 5572 (on d3d11)
Compiling Subshader: 0, Pass: ForwardOnly, Vertex program with <no keywords>
Platform defines: SHADER_API_DESKTOP UNITY_ENABLE_DETAIL_NORMALMAP UNITY_ENABLE_REFLECTION_BUFFERS UNITY_LIGHTMAP_FULL_HDR UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS
Disabled keywords: DEBUG_DISPLAY SHADER_API_GLES30 UNITY_ASTC_NORMALMAP_ENCODING UNITY_COLORSPACE_GAMMA UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_RGBM_ENCODING UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_DXT5nm UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_VIRTUAL_TEXTURING _SURFACE_TYPE_TRANSPARENT _TRANSPARENT_REFRACTIVE_SORT _TRANSPARENT_WRITES_MOTION_VEC
{code}
{code:java}
{code}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- [Linux] AutoLocale log is logged when opening a project
- Global Scenes are not included in the Build when building multiple Build Profiles at the same time
Add comment