Godot Engine – Multi-platform 2D and 3D game engine
#include "drivers/gles3/shader_gles3.h"
class VertexFragmentShaderGLES3 : public ShaderGLES3 {
public:
enum ShaderVariant {
MODE_NINEPATCH,
};
enum Specializations : uint64_t {
DISABLE_LIGHTING = 1,
};
_FORCE_INLINE_ bool version_bind_shader(RID p_version, ShaderVariant p_variant, uint64_t p_specialization = 0) {
return _version_bind_shader(p_version, p_variant, p_specialization);
}
protected:
virtual void _init() override {
static const char **_uniform_strings = nullptr;
static const char *_variant_defines[] = {
"#define USE_NINEPATCH",
};
static TexUnitPair *_texunit_pairs = nullptr;
static UBOPair *_ubo_pairs = nullptr;
static Specialization _spec_pairs[] = {
{ "DISABLE_LIGHTING", false },
};
static const Feedback *_feedbacks = nullptr;
static const uint8_t _code_compressed[] = {
120, 218, 149, 143, 205, 14, 130, 48, 16, 132, 189, 186, 79, 177, 199, 130, 200, 79, 244, 70, 124, 22, 210,
212, 2, 77, 42, 219, 148, 138, 168, 241, 221, 93, 252, 137, 134, 147, 94, 246, 48, 59, 243, 101, 6, 156,
215, 202, 244, 134, 58, 108, 77, 211, 58, 172, 45, 201, 80, 194, 92, 54, 29, 139, 89, 140, 202, 202, 174,
89, 215, 228, 15, 50, 32, 127, 227, 12, 172, 60, 211, 49, 8, 75, 74, 134, 41, 176, 195, 60, 98, 255, 43,
56, 104, 181, 225, 227, 131, 30, 75, 0, 54, 126, 244, 45, 58, 234, 205, 148, 169, 24, 175, 189, 99, 195,
64, 102, 143, 7, 105, 58, 17, 225, 21, 150, 51, 3, 179, 167, 156, 120, 242, 210, 49, 193, 34, 193, 156,
111, 84, 194, 13, 96, 1, 255, 172, 129, 239, 142, 63, 116, 249, 34, 226, 94, 187, 208, 114, 27, 33, 102,
177, 244, 130, 217, 28, 149, 158, 34, 92, 97, 145, 230, 220, 114, 89, 123, 217, 84, 138, 44, 249, 247, 152,
7, 235, 49, 96, 113, 7, 44, 120, 132, 251
};
const CharString _code = _decompress_code(_code_compressed, 195, 398);
_setup(_code.get_data(), _code.get_data() + 206, "VertexFragmentShaderGLES3",
0, _uniform_strings, 0, _ubo_pairs,
0, _feedbacks, 0, _texunit_pairs,
1, _spec_pairs, 1, _variant_defines);
}
};