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

Class Shaders

src/main/java/net/optifine/shaders/Shaders.java:122–5872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120import org.lwjgl.util.vector.Vector4f;
121
122public class Shaders
123{
124 static Minecraft mc;
125 static EntityRenderer entityRenderer;
126 public static boolean isInitializedOnce = false;
127 public static boolean isShaderPackInitialized = false;
128 public static ContextCapabilities capabilities;
129 public static String glVersionString;
130 public static String glVendorString;
131 public static String glRendererString;
132 public static boolean hasGlGenMipmap = false;
133 public static int countResetDisplayLists = 0;
134 private static int renderDisplayWidth = 0;
135 private static int renderDisplayHeight = 0;
136 public static int renderWidth = 0;
137 public static int renderHeight = 0;
138 public static boolean isRenderingWorld = false;
139 public static boolean isRenderingSky = false;
140 public static boolean isCompositeRendered = false;
141 public static boolean isRenderingDfb = false;
142 public static boolean isShadowPass = false;
143 public static boolean isEntitiesGlowing = false;
144 public static boolean isSleeping;
145 private static boolean isRenderingFirstPersonHand;
146 private static boolean isHandRenderedMain;
147 private static boolean isHandRenderedOff;
148 private static boolean skipRenderHandMain;
149 private static boolean skipRenderHandOff;
150 public static boolean renderItemKeepDepthMask = false;
151 public static boolean itemToRenderMainTranslucent = false;
152 public static boolean itemToRenderOffTranslucent = false;
153 static float[] sunPosition = new float[4];
154 static float[] moonPosition = new float[4];
155 static float[] shadowLightPosition = new float[4];
156 static float[] upPosition = new float[4];
157 static float[] shadowLightPositionVector = new float[4];
158 static float[] upPosModelView = new float[] {0.0F, 100.0F, 0.0F, 0.0F};
159 static float[] sunPosModelView = new float[] {0.0F, 100.0F, 0.0F, 0.0F};
160 static float[] moonPosModelView = new float[] {0.0F, -100.0F, 0.0F, 0.0F};
161 private static float[] tempMat = new float[16];
162 static float clearColorR;
163 static float clearColorG;
164 static float clearColorB;
165 static float skyColorR;
166 static float skyColorG;
167 static float skyColorB;
168 static long worldTime = 0L;
169 static long lastWorldTime = 0L;
170 static long diffWorldTime = 0L;
171 static float celestialAngle = 0.0F;
172 static float sunAngle = 0.0F;
173 static float shadowAngle = 0.0F;
174 static int moonPhase = 0;
175 static long systemTime = 0L;
176 static long lastSystemTime = 0L;
177 static long diffSystemTime = 0L;
178 static int frameCounter = 0;
179 static float frameTime = 0.0F;

Callers

nothing calls this directly

Calls 15

nextFloatBufferMethod · 0.95
nextIntBufferMethod · 0.95
getMinecraftMethod · 0.95
make4fMethod · 0.80
make1iMethod · 0.80
make1fMethod · 0.80
make3fMethod · 0.80
makeM4Method · 0.80
make2iMethod · 0.80
make4iMethod · 0.80
getProgramNoneMethod · 0.80
makeShadowMethod · 0.80

Tested by

no test coverage detected