Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.5.1
-
None
-
Direct3D
-
-
4b0bb2f95 (dev), 6ce9c481a (6.7)
Description
It gives a shader compilation error.
” Shader Error: "cbuffer ID 50 (name: qt3d_light_uniforms), member index 0 (name: lights) cannot be expressed with either HLSL packing layout or packoffset."
Seems to be the same issue as it was for Gooch material, reported (and since fixed) here:
Context: pervertexcolor.frag
const int MAX_LIGHTS = 8;
const int TYPE_POINT = 0;
const int TYPE_DIRECTIONAL = 1;
const int TYPE_SPOT = 2;
struct Light
{ int type; vec3 position; vec3 color; float intensity; vec3 direction; float constantAttenuation; float linearAttenuation; float quadraticAttenuation; float cutOffAngle; };
layout(std140, binding = 2) uniform qt3d_light_uniforms
{ uniform Light lights[MAX_LIGHTS]; uniform int lightCount; uniform int envLightCount; };