Jump to content

[SOLVED] Compilation error in Billboard vertex shader [2.5, D3D11]


photo

Recommended Posts

Posted

Hello,

 

I encountered a strange compilation error when creating a billboard in the editor:

10:14:27 D3D11Shader::loadVertex(): error in "core/shaders/billboards/vertex/default.vert" file
10:14:27 defines: ,BASE_WIREFRAME,BLEND_SRC_FUNC_NONE,BLEND_DEST_FUNC_NONE,EMISSION_TEXTURE_EMISSION,NVIDIA,QUALITY_LOW,QUALITY_MEDIUM,QUALITY_HIGH,RENDER_MESH_NUM_INSTANCES=341,USE_ALPHA_FADE,USE_PARALLAX,USE_TAA,USE_SPECULAR_LIGHT,USE_ENVIRONMENT,USE_HAZE_SCATTERING,USE_HAZE,USE_ENVIRONMENT_AMBIENT,USE_ENVIRONMENT_REFLECTION,USE_RW_TEXTURES,USE_STORAGE_BUFFERS,USE_SSAO,OUT_GBUFFER_ALBEDO=0,OUT_GBUFFER_SHADING=1,OUT_GBUFFER_NORMAL=2,OUT_GBUFFER_MATERIAL_MASK=3,OUT_GBUFFER_LIGHTMAP=4,OUT_GBUFFER_VELOCITY=5,USE_GBUFFER_AO,OUT_GBUFFER_SPECULAR=g,OUT_GBUFFER_TRANSLUCENT=b,OUT_GBUFFER_MICROFIBER=a,OUT_GBUFFER_SHADING_FORMAT=float4,USE_WATER_ENV_PROBES,USE_WATER_LIGHTS,USE_SOFT_SHADOWS,SOFT_SHADOWS_LOW,USE_OMNI_SHADOW_JITTER,USE_LERP_CASCADES,DIRECT3D11,USE_COMPUTE_SHADER,VERTEX
10:14:27 D:\unigine_template_projects\projects_25\bill_the_board\bin\core\shaders\billboards\vertex\default.vert(1928,2-14): error X3018: invalid subscript 'data_1'

I think it has something to do with the oblique frustum stuff.

Reproduction should be easy:

 

- Create a fresh unigine Project (under Windows, using D3D11) with Unigine Editor 2

- Create a Billboard node through the editor

- when the billboard becomes visible in the viewport, it should crash (or at least trigger a compilation error)

 

I don't think it is related to the Editor, I also encountered the same issue in Editor 1.

 

I do not need a fix for that urgently, I just wanted to point out that issue

 

Cheers

 Helmut

  • 2 weeks later...
Posted

It can be easily fixed by modifying data/core/shaders/billboards/vertex/default.vert. Just add after line 7 following string:

INIT_OUT(float,0) // line 7
INIT_OUT(float,1) // add following

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

  • 2 weeks later...
Posted

Fix for this issue will be available in next SDK update.

  • silent changed the title to [SOLVED] Compilation error in Billboard vertex shader [2.5, D3D11]
×
×
  • Create New...