Skip to content

Instantly share code, notes, and snippets.

@FernandoS27
Created September 12, 2018 18:14
Show Gist options
  • Save FernandoS27/6887406d4c94056c8227e7554abb3db5 to your computer and use it in GitHub Desktop.
Save FernandoS27/6887406d4c94056c8227e7554abb3db5 to your computer and use it in GitHub Desktop.
#version 430 core
#extension GL_ARB_separate_shader_objects : enable
#define MAX_CONSTBUFFER_ELEMENTS 4096
bool exec_fragment();
in vec4 position;
layout(location = 0) out vec4 FragColor0;
layout(location = 1) out vec4 FragColor1;
layout(location = 2) out vec4 FragColor2;
layout(location = 3) out vec4 FragColor3;
layout(location = 4) out vec4 FragColor4;
layout(location = 5) out vec4 FragColor5;
layout(location = 6) out vec4 FragColor6;
layout(location = 7) out vec4 FragColor7;
layout (std140) uniform fs_config {
vec4 viewport_flip;
uvec4 instance_id;
};
void main() {
exec_fragment();
}
float reg_0_fragment = 0;
float reg_1_fragment = 0;
float reg_2_fragment = 0;
float reg_3_fragment = 0;
float reg_4_fragment = 0;
float reg_5_fragment = 0;
float reg_6_fragment = 0;
float reg_7_fragment = 0;
float reg_8_fragment = 0;
float reg_9_fragment = 0;
float reg_10_fragment = 0;
float reg_11_fragment = 0;
float reg_12_fragment = 0;
float reg_13_fragment = 0;
float reg_14_fragment = 0;
float reg_15_fragment = 0;
float reg_16_fragment = 0;
float reg_17_fragment = 0;
float reg_18_fragment = 0;
float reg_19_fragment = 0;
float reg_20_fragment = 0;
float reg_21_fragment = 0;
float reg_22_fragment = 0;
float reg_23_fragment = 0;
float reg_24_fragment = 0;
float reg_25_fragment = 0;
float reg_26_fragment = 0;
float reg_27_fragment = 0;
float reg_28_fragment = 0;
float reg_29_fragment = 0;
float reg_30_fragment = 0;
float reg_31_fragment = 0;
float reg_32_fragment = 0;
float reg_33_fragment = 0;
float reg_34_fragment = 0;
float reg_35_fragment = 0;
float reg_36_fragment = 0;
float reg_37_fragment = 0;
float reg_38_fragment = 0;
float reg_39_fragment = 0;
float reg_40_fragment = 0;
float reg_41_fragment = 0;
float reg_42_fragment = 0;
float reg_43_fragment = 0;
float reg_44_fragment = 0;
float reg_45_fragment = 0;
float reg_46_fragment = 0;
float reg_47_fragment = 0;
float reg_48_fragment = 0;
float reg_49_fragment = 0;
float reg_50_fragment = 0;
float reg_51_fragment = 0;
float reg_52_fragment = 0;
float reg_53_fragment = 0;
float reg_54_fragment = 0;
float reg_55_fragment = 0;
float reg_56_fragment = 0;
float reg_57_fragment = 0;
float reg_58_fragment = 0;
float reg_59_fragment = 0;
float reg_60_fragment = 0;
float reg_61_fragment = 0;
float reg_62_fragment = 0;
float reg_63_fragment = 0;
float reg_64_fragment = 0;
float reg_65_fragment = 0;
float reg_66_fragment = 0;
float reg_67_fragment = 0;
float reg_68_fragment = 0;
float reg_69_fragment = 0;
float reg_70_fragment = 0;
float reg_71_fragment = 0;
float reg_72_fragment = 0;
float reg_73_fragment = 0;
float reg_74_fragment = 0;
float reg_75_fragment = 0;
float reg_76_fragment = 0;
float reg_77_fragment = 0;
float reg_78_fragment = 0;
float reg_79_fragment = 0;
float reg_80_fragment = 0;
float reg_81_fragment = 0;
float reg_82_fragment = 0;
float reg_83_fragment = 0;
float reg_84_fragment = 0;
float reg_85_fragment = 0;
float reg_86_fragment = 0;
float reg_87_fragment = 0;
float reg_88_fragment = 0;
float reg_89_fragment = 0;
float reg_90_fragment = 0;
float reg_91_fragment = 0;
float reg_92_fragment = 0;
float reg_93_fragment = 0;
float reg_94_fragment = 0;
float reg_95_fragment = 0;
float reg_96_fragment = 0;
float reg_97_fragment = 0;
float reg_98_fragment = 0;
float reg_99_fragment = 0;
float reg_100_fragment = 0;
float reg_101_fragment = 0;
float reg_102_fragment = 0;
float reg_103_fragment = 0;
float reg_104_fragment = 0;
float reg_105_fragment = 0;
float reg_106_fragment = 0;
float reg_107_fragment = 0;
float reg_108_fragment = 0;
float reg_109_fragment = 0;
float reg_110_fragment = 0;
float reg_111_fragment = 0;
float reg_112_fragment = 0;
float reg_113_fragment = 0;
float reg_114_fragment = 0;
float reg_115_fragment = 0;
float reg_116_fragment = 0;
float reg_117_fragment = 0;
float reg_118_fragment = 0;
float reg_119_fragment = 0;
float reg_120_fragment = 0;
float reg_121_fragment = 0;
float reg_122_fragment = 0;
float reg_123_fragment = 0;
float reg_124_fragment = 0;
float reg_125_fragment = 0;
float reg_126_fragment = 0;
float reg_127_fragment = 0;
float reg_128_fragment = 0;
float reg_129_fragment = 0;
float reg_130_fragment = 0;
float reg_131_fragment = 0;
float reg_132_fragment = 0;
float reg_133_fragment = 0;
float reg_134_fragment = 0;
float reg_135_fragment = 0;
float reg_136_fragment = 0;
float reg_137_fragment = 0;
float reg_138_fragment = 0;
float reg_139_fragment = 0;
float reg_140_fragment = 0;
float reg_141_fragment = 0;
float reg_142_fragment = 0;
float reg_143_fragment = 0;
float reg_144_fragment = 0;
float reg_145_fragment = 0;
float reg_146_fragment = 0;
float reg_147_fragment = 0;
float reg_148_fragment = 0;
float reg_149_fragment = 0;
float reg_150_fragment = 0;
float reg_151_fragment = 0;
float reg_152_fragment = 0;
float reg_153_fragment = 0;
float reg_154_fragment = 0;
float reg_155_fragment = 0;
float reg_156_fragment = 0;
float reg_157_fragment = 0;
float reg_158_fragment = 0;
float reg_159_fragment = 0;
float reg_160_fragment = 0;
float reg_161_fragment = 0;
float reg_162_fragment = 0;
float reg_163_fragment = 0;
float reg_164_fragment = 0;
float reg_165_fragment = 0;
float reg_166_fragment = 0;
float reg_167_fragment = 0;
float reg_168_fragment = 0;
float reg_169_fragment = 0;
float reg_170_fragment = 0;
float reg_171_fragment = 0;
float reg_172_fragment = 0;
float reg_173_fragment = 0;
float reg_174_fragment = 0;
float reg_175_fragment = 0;
float reg_176_fragment = 0;
float reg_177_fragment = 0;
float reg_178_fragment = 0;
float reg_179_fragment = 0;
float reg_180_fragment = 0;
float reg_181_fragment = 0;
float reg_182_fragment = 0;
float reg_183_fragment = 0;
float reg_184_fragment = 0;
float reg_185_fragment = 0;
float reg_186_fragment = 0;
float reg_187_fragment = 0;
float reg_188_fragment = 0;
float reg_189_fragment = 0;
float reg_190_fragment = 0;
float reg_191_fragment = 0;
float reg_192_fragment = 0;
float reg_193_fragment = 0;
float reg_194_fragment = 0;
float reg_195_fragment = 0;
float reg_196_fragment = 0;
float reg_197_fragment = 0;
float reg_198_fragment = 0;
float reg_199_fragment = 0;
float reg_200_fragment = 0;
float reg_201_fragment = 0;
float reg_202_fragment = 0;
float reg_203_fragment = 0;
float reg_204_fragment = 0;
float reg_205_fragment = 0;
float reg_206_fragment = 0;
float reg_207_fragment = 0;
float reg_208_fragment = 0;
float reg_209_fragment = 0;
float reg_210_fragment = 0;
float reg_211_fragment = 0;
float reg_212_fragment = 0;
float reg_213_fragment = 0;
float reg_214_fragment = 0;
float reg_215_fragment = 0;
float reg_216_fragment = 0;
float reg_217_fragment = 0;
float reg_218_fragment = 0;
float reg_219_fragment = 0;
float reg_220_fragment = 0;
float reg_221_fragment = 0;
float reg_222_fragment = 0;
float reg_223_fragment = 0;
float reg_224_fragment = 0;
float reg_225_fragment = 0;
float reg_226_fragment = 0;
float reg_227_fragment = 0;
float reg_228_fragment = 0;
float reg_229_fragment = 0;
float reg_230_fragment = 0;
float reg_231_fragment = 0;
float reg_232_fragment = 0;
float reg_233_fragment = 0;
float reg_234_fragment = 0;
float reg_235_fragment = 0;
float reg_236_fragment = 0;
float reg_237_fragment = 0;
float reg_238_fragment = 0;
float reg_239_fragment = 0;
float reg_240_fragment = 0;
float reg_241_fragment = 0;
float reg_242_fragment = 0;
float reg_243_fragment = 0;
float reg_244_fragment = 0;
float reg_245_fragment = 0;
float reg_246_fragment = 0;
float reg_247_fragment = 0;
float reg_248_fragment = 0;
float reg_249_fragment = 0;
float reg_250_fragment = 0;
float reg_251_fragment = 0;
float reg_252_fragment = 0;
float reg_253_fragment = 0;
float reg_254_fragment = 0;
float reg_255_fragment = 0;
bool controlCode_0fragment = false;
bool controlCode_1fragment = false;
bool controlCode_2fragment = false;
bool controlCode_3fragment = false;
bool controlCode_4fragment = false;
bool controlCode_5fragment = false;
bool controlCode_6fragment = false;
bool controlCode_7fragment = false;
bool controlCode_8fragment = false;
bool controlCode_9fragment = false;
bool controlCode_10fragment = false;
bool controlCode_11fragment = false;
bool controlCode_12fragment = false;
bool controlCode_13fragment = false;
bool controlCode_14fragment = false;
bool controlCode_15fragment = false;
bool controlCode_16fragment = false;
bool controlCode_17fragment = false;
bool controlCode_18fragment = false;
bool controlCode_19fragment = false;
bool controlCode_20fragment = false;
bool controlCode_21fragment = false;
bool controlCode_22fragment = false;
bool controlCode_23fragment = false;
bool controlCode_24fragment = false;
bool controlCode_25fragment = false;
bool controlCode_26fragment = false;
bool controlCode_27fragment = false;
bool controlCode_28fragment = false;
bool controlCode_29fragment = false;
bool controlCode_30fragment = false;
bool controlCode_31fragment = false;
layout(location = 0)in vec4 input_attribute_0;
layout(std140) uniform buffer_fs_c14
{
vec4 c14[MAX_CONSTBUFFER_ELEMENTS];
};
bool p0_fragment = false;
bool sub_10_4096_fragment();
bool exec_fragment() {
sub_10_4096_fragment();
return true;
}
bool sub_10_4096_fragment() {
// 11: IPA (16142026448200793860)
reg_4_fragment = vec4(gl_FragCoord.x, gl_FragCoord.y, gl_FragCoord.z, 1.0).w;
// 12: MUFU (5800636320057852932)
reg_4_fragment = (1.0 / reg_4_fragment);
// 13: IPA (16160040850742050560)
reg_0_fragment = input_attribute_0.w;
// 15: FSETP_C (5454285450092412935)
p0_fragment = ((reg_0_fragment) < (c14[17][1])) && (true);
// 16: MOV32_IMM (73174697852268544)
reg_0_fragment = (uintBitsToFloat(1065353216));
// 17: MOV_R (6672091094287056897)
reg_1_fragment = (reg_0_fragment);
// 19: KIL (16370584645491752975)
if (p0_fragment)
{
if (true) {
discard;
}
}
// 20: MOV_R (6672091094287056898)
reg_2_fragment = (reg_0_fragment);
// 21: MOV_R (6672091094287056899)
reg_3_fragment = (reg_0_fragment);
// 23: EXIT (16357073846610100239)
FragColor3[0] = reg_0_fragment;
FragColor3[1] = reg_1_fragment;
FragColor3[2] = reg_2_fragment;
FragColor3[3] = reg_3_fragment;
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment