MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / init

Method init

src/main/java/net/optifine/shaders/Shaders.java:2140–2367  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2138 }
2139
2140 public static void init()
2141 {
2142 boolean flag;
2143
2144 if (!isInitializedOnce)
2145 {
2146 isInitializedOnce = true;
2147 flag = true;
2148 }
2149 else
2150 {
2151 flag = false;
2152 }
2153
2154 if (!isShaderPackInitialized)
2155 {
2156 checkGLError("Shaders.init pre");
2157
2158 if (getShaderPackName() != null)
2159 {
2160 ;
2161 }
2162
2163 if (!capabilities.OpenGL20)
2164 {
2165 printChatAndLogError("No OpenGL 2.0");
2166 }
2167
2168 if (!capabilities.GL_EXT_framebuffer_object)
2169 {
2170 printChatAndLogError("No EXT_framebuffer_object");
2171 }
2172
2173 dfbDrawBuffers.position(0).limit(8);
2174 dfbColorTextures.position(0).limit(16);
2175 dfbDepthTextures.position(0).limit(3);
2176 sfbDrawBuffers.position(0).limit(8);
2177 sfbDepthTextures.position(0).limit(2);
2178 sfbColorTextures.position(0).limit(8);
2179 usedColorBuffers = 4;
2180 usedDepthBuffers = 1;
2181 usedShadowColorBuffers = 0;
2182 usedShadowDepthBuffers = 0;
2183 usedColorAttachs = 1;
2184 usedDrawBuffers = 1;
2185 Arrays.fill((int[])gbuffersFormat, (int)6408);
2186 Arrays.fill(gbuffersClear, true);
2187 Arrays.fill(gbuffersClearColor, (Object)null);
2188 Arrays.fill(shadowHardwareFilteringEnabled, false);
2189 Arrays.fill(shadowMipmapEnabled, false);
2190 Arrays.fill(shadowFilterNearest, false);
2191 Arrays.fill(shadowColorMipmapEnabled, false);
2192 Arrays.fill(shadowColorFilterNearest, false);
2193 centerDepthSmoothEnabled = false;
2194 noiseTextureEnabled = false;
2195 sunPathRotation = 0.0F;
2196 shadowIntervalSize = 2.0F;
2197 shadowMapWidth = 1024;

Callers 1

beginRenderMethod · 0.95

Calls 15

checkGLErrorMethod · 0.95
getShaderPackNameMethod · 0.95
printChatAndLogErrorMethod · 0.95
updateBlockLightLevelMethod · 0.95
resetValuesMethod · 0.95
detectProfileMethod · 0.95
resetIdMethod · 0.95
resetConfigurationMethod · 0.95
getProgramStageMethod · 0.95
getNameMethod · 0.95
isProgramDisabledMethod · 0.95
infoMethod · 0.95

Tested by

no test coverage detected