July 20, 20231 yr No, It will only work for minecraft java or bedrock, Not ClassiCube, Because it don't have Shader Performance Button And Plus, Shader really won't work if its on ClassiCube...
July 20, 20231 yr well i found some GLSL in the classicube source code /* Generates source code for a GLSL vertex shader, based on shader's flags */ static void GenVertexShader(const struct GLShader* shader, cc_string* dst) { int uv = shader->features & FTR_TEXTURE_UV; int tm = shader->features & FTR_TEX_OFFSET; String_AppendConst(dst, "attribute vec3 in_pos;\n"); String_AppendConst(dst, "attribute vec4 in_col;\n"); if (uv) String_AppendConst(dst, "attribute vec2 in_uv;\n"); String_AppendConst(dst, "varying vec4 out_col;\n"); if (uv) String_AppendConst(dst, "varying vec2 out_uv;\n"); String_AppendConst(dst, "uniform mat4 mvp;\n"); if (tm) String_AppendConst(dst, "uniform vec2 texOffset;\n"); String_AppendConst(dst, "void main() {\n"); String_AppendConst(dst, " gl_Position = mvp * vec4(in_pos, 1.0);\n"); String_AppendConst(dst, " out_col = in_col;\n"); if (uv) String_AppendConst(dst, " out_uv = in_uv;\n"); if (tm) String_AppendConst(dst, " out_uv = out_uv + texOffset;\n"); String_AppendConst(dst, "}"); }
July 21, 20231 yr Author On 7/20/2023 at 4:00 PM, MESYETI said: well i found some GLSL in the classicube source code /* Generates source code for a GLSL vertex shader, based on shader's flags */ static void GenVertexShader(const struct GLShader* shader, cc_string* dst) { int uv = shader->features & FTR_TEXTURE_UV; int tm = shader->features & FTR_TEX_OFFSET; String_AppendConst(dst, "attribute vec3 in_pos;\n"); String_AppendConst(dst, "attribute vec4 in_col;\n"); if (uv) String_AppendConst(dst, "attribute vec2 in_uv;\n"); String_AppendConst(dst, "varying vec4 out_col;\n"); if (uv) String_AppendConst(dst, "varying vec2 out_uv;\n"); String_AppendConst(dst, "uniform mat4 mvp;\n"); if (tm) String_AppendConst(dst, "uniform vec2 texOffset;\n"); String_AppendConst(dst, "void main() {\n"); String_AppendConst(dst, " gl_Position = mvp * vec4(in_pos, 1.0);\n"); String_AppendConst(dst, " out_col = in_col;\n"); if (uv) String_AppendConst(dst, " out_uv = in_uv;\n"); if (tm) String_AppendConst(dst, " out_uv = out_uv + texOffset;\n"); String_AppendConst(dst, "}"); } Well I don't know what that is
July 22, 20231 yr 3 minutes ago, decor74 said: Yes, i Agree what MESYETI said That's literally incredible.
July 24, 20231 yr 6 hours ago, PotionPro32 said: But like are there any shaders that angled shadows and stuff like that. Probably not, at least not on the old ClassicalSharp branch.
July 24, 20231 yr Just now, Caliberto77 said: OMG this shader thing seems awesome!! i need to try it!! uh.... what
July 24, 20231 yr idk i never really use these i can get very weird with them, but i need to know how to use it.
Are there any classicube shaders that work with the latest version