You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Revert "Fix GPUParticles are not rendered for older AMD GPUs with OpenGL+Angle"
This reverts commit 9cc9df52eb.
This also adds a fallback to avoid using the Godot versions of the half 2 float functions when using ANGLE.
This commit is contained in:
@@ -168,6 +168,10 @@ void ShaderGLES3::_build_variant_code(StringBuilder &builder, uint32_t p_variant
|
||||
builder.append("#version 300 es\n");
|
||||
}
|
||||
|
||||
if (GLES3::Config::get_singleton()->polyfill_half2float) {
|
||||
builder.append("#define USE_HALF2FLOAT\n");
|
||||
}
|
||||
|
||||
for (int i = 0; i < specialization_count; i++) {
|
||||
if (p_specialization & (uint64_t(1) << uint64_t(i))) {
|
||||
builder.append("#define " + String(specializations[i].name) + "\n");
|
||||
|
||||
Reference in New Issue
Block a user