KDAB / kuesa

Professional 3D asset creation and integration workflow for Qt
https://www.kuesa.com/
139 stars 27 forks source link

Fix Shader Issue Under ES2 / Windows #65

Closed TimoBuskeKdab closed 5 years ago

TimoBuskeKdab commented 5 years ago

got QOpenGLShader::compile(Fragment): ERROR: 0:81: '=' : assigning non-constant to 'const highp float'

Ticket-Id: KUE-631

TimoBuskeKdab commented 5 years ago

What a crappy compiler but I guess it's within the spec technically since it calls the sqrt function. We could work out the actual value by hand and leave a comment as to what was used to calculate it. That way we can keep this as a constant and avoid a sqrt() operation per fragment.

right. sounds good. i'll change that.