├── .gitignore ├── VertexFadeRP ├── pack.png ├── assets │ └── minecraft │ │ └── shaders │ │ ├── include │ │ └── vertex_fade.glsl │ │ └── core │ │ ├── rendertype_water_mask.json │ │ ├── rendertype_beacon_beam.json │ │ ├── rendertype_crumbling.json │ │ ├── rendertype_translucent_moving_block.json │ │ ├── rendertype_translucent_no_crumbling.json │ │ ├── rendertype_eyes.json │ │ ├── rendertype_entity_alpha.json │ │ ├── rendertype_breeze_wind.json │ │ ├── rendertype_leash.json │ │ ├── rendertype_entity_shadow.json │ │ ├── rendertype_entity_translucent_emissive.json │ │ ├── rendertype_glint.json │ │ ├── rendertype_entity_glint.json │ │ ├── rendertype_glint_direct.json │ │ ├── rendertype_entity_glint_direct.json │ │ ├── rendertype_glint_translucent.json │ │ ├── rendertype_solid.json │ │ ├── rendertype_cutout.json │ │ ├── rendertype_cutout_mipped.json │ │ ├── rendertype_translucent.json │ │ ├── rendertype_item_entity_translucent_cull.json │ │ ├── rendertype_entity_no_outline.json │ │ ├── rendertype_entity_decal.json │ │ ├── rendertype_entity_solid.json │ │ ├── rendertype_entity_cutout.json │ │ ├── rendertype_entity_translucent.json │ │ ├── rendertype_entity_cutout_no_cull.json │ │ ├── rendertype_entity_smooth_cutout.json │ │ ├── rendertype_entity_translucent_cull.json │ │ └── rendertype_entity_cutout_no_cull_z_offset.json ├── pack.mcmeta └── README.txt ├── OrthographicShaderRP ├── pack.png ├── pack.mcmeta ├── assets │ └── minecraft │ │ └── shaders │ │ ├── include │ │ └── ortho_config.glsl │ │ └── core │ │ ├── main │ │ ├── rendertype_end_portal.vsh │ │ ├── rendertype_position_color.vsh │ │ ├── rendertype_entity_leash.vsh │ │ ├── rendertype_position_tex_color.vsh │ │ ├── rendertype_text_see_through.vsh │ │ ├── rendertype_entity_dynamic.vsh │ │ ├── rendertype_entity_glint.vsh │ │ ├── rendertype_text.vsh │ │ ├── rendertype_entity_colored.vsh │ │ ├── rendertype_block.vsh │ │ ├── rendertype_position.vsh │ │ ├── rendertype_entity.vsh │ │ ├── rendertype_entity_lightmap_colored.vsh │ │ └── rendertype_lines.vsh │ │ ├── rendertype_water_mask.json │ │ ├── position_color.json │ │ ├── position_tex.json │ │ ├── position_color_tex.json │ │ ├── rendertype_outline.json │ │ ├── position_color_lightmap.json │ │ ├── position_tex_color.json │ │ ├── rendertype_end_portal.json │ │ ├── rendertype_end_gateway.json │ │ ├── block.json │ │ ├── position_color_tex_lightmap.json │ │ ├── position_tex_lightmap_color.json │ │ ├── rendertype_text_see_through.json │ │ ├── rendertype_crumbling.json │ │ ├── rendertype_lightning.json │ │ ├── rendertype_translucent_moving_block.json │ │ ├── rendertype_translucent_no_crumbling.json │ │ ├── new_entity.json │ │ ├── position.json │ │ ├── rendertype_entity_alpha.json │ │ ├── position_color_normal.json │ │ ├── rendertype_leash.json │ │ ├── rendertype_beacon_beam.json │ │ ├── rendertype_entity_shadow.json │ │ ├── position_tex_color_normal.json │ │ ├── rendertype_eyes.json │ │ ├── particle.json │ │ ├── rendertype_breeze_wind.json │ │ ├── rendertype_text.json │ │ ├── rendertype_energy_swirl.json │ │ ├── rendertype_entity_translucent_emissive.json │ │ ├── rendertype_lines.json │ │ ├── rendertype_glint.json │ │ ├── rendertype_armor_glint.json │ │ ├── rendertype_entity_glint.json │ │ ├── rendertype_glint_direct.json │ │ ├── rendertype_glint_translucent.json │ │ ├── rendertype_armor_entity_glint.json │ │ ├── rendertype_cutout.json │ │ ├── rendertype_entity_glint_direct.json │ │ ├── rendertype_solid.json │ │ ├── rendertype_tripwire.json │ │ ├── rendertype_translucent.json │ │ ├── rendertype_cutout_mipped.json │ │ ├── rendertype_entity_no_outline.json │ │ ├── rendertype_entity_cutout.json │ │ ├── rendertype_entity_solid.json │ │ ├── rendertype_entity_translucent.json │ │ ├── rendertype_entity_decal.json │ │ ├── rendertype_entity_smooth_cutout.json │ │ ├── rendertype_entity_cutout_no_cull.json │ │ ├── rendertype_armor_cutout_no_cull.json │ │ ├── rendertype_entity_cutout_no_cull_z_offset.json │ │ ├── rendertype_entity_translucent_cull.json │ │ └── rendertype_item_entity_translucent_cull.json └── README.txt ├── CoreShadersCustomTemplateRP ├── pack.mcmeta └── assets │ └── minecraft │ └── shaders │ └── core │ ├── main │ ├── rendertype_position_color.vsh │ ├── rendertype_end_portal.vsh │ ├── rendertype_position_tex_color.vsh │ ├── rendertype_text_see_through.vsh │ ├── rendertype_entity_glint.vsh │ ├── rendertype_entity_leash.vsh │ ├── rendertype_text.vsh │ ├── rendertype_position.vsh │ ├── rendertype_entity_dynamic.vsh │ ├── rendertype_entity_colored.vsh │ ├── rendertype_block.vsh │ ├── rendertype_entity.vsh │ ├── rendertype_entity_lightmap_colored.vsh │ └── rendertype_lines.vsh │ ├── blit_screen.json │ ├── rendertype_water_mask.json │ ├── position_color.json │ ├── position_tex.json │ ├── position_color_tex.json │ ├── position_color_lightmap.json │ ├── position_tex_color.json │ ├── rendertype_outline.json │ ├── rendertype_end_gateway.json │ ├── rendertype_end_portal.json │ ├── block.json │ ├── position_color_tex_lightmap.json │ ├── position_tex_lightmap_color.json │ ├── rendertype_text_see_through.json │ ├── rendertype_crumbling.json │ ├── rendertype_lightning.json │ ├── rendertype_translucent_moving_block.json │ ├── rendertype_translucent_no_crumbling.json │ ├── new_entity.json │ ├── position.json │ ├── rendertype_entity_alpha.json │ ├── rendertype_breeze_wind.json │ ├── position_color_normal.json │ ├── rendertype_leash.json │ ├── rendertype_beacon_beam.json │ ├── rendertype_entity_shadow.json │ ├── position_tex_color_normal.json │ ├── rendertype_eyes.json │ ├── particle.json │ ├── rendertype_entity_translucent_emissive.json │ ├── rendertype_text.json │ ├── rendertype_energy_swirl.json │ ├── rendertype_glint.json │ ├── rendertype_lines.json │ ├── rendertype_armor_glint.json │ ├── rendertype_entity_glint.json │ ├── rendertype_glint_direct.json │ ├── rendertype_armor_entity_glint.json │ ├── rendertype_glint_translucent.json │ ├── rendertype_solid.json │ ├── rendertype_cutout.json │ ├── rendertype_entity_glint_direct.json │ ├── rendertype_tripwire.json │ ├── rendertype_cutout_mipped.json │ ├── rendertype_translucent.json │ ├── rendertype_entity_no_outline.json │ ├── rendertype_entity_solid.json │ ├── rendertype_entity_cutout.json │ ├── rendertype_entity_translucent.json │ ├── rendertype_entity_cutout_no_cull.json │ ├── rendertype_entity_decal.json │ ├── rendertype_entity_smooth_cutout.json │ ├── rendertype_armor_cutout_no_cull.json │ ├── rendertype_entity_cutout_no_cull_z_offset.json │ ├── rendertype_entity_translucent_cull.json │ └── rendertype_item_entity_translucent_cull.json └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | distr -------------------------------------------------------------------------------- /VertexFadeRP/pack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onnowhere/core_shaders/HEAD/VertexFadeRP/pack.png -------------------------------------------------------------------------------- /OrthographicShaderRP/pack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onnowhere/core_shaders/HEAD/OrthographicShaderRP/pack.png -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/include/vertex_fade.glsl: -------------------------------------------------------------------------------- 1 | #define distanceThreshold 16.0 2 | #define fadeScale 5.0 3 | -------------------------------------------------------------------------------- /VertexFadeRP/pack.mcmeta: -------------------------------------------------------------------------------- 1 | { 2 | "pack": { 3 | "pack_format": 28, 4 | "description": "Vertex Fade Shader RP\n§bv1.0.4 | By Onnowhere" 5 | } 6 | } -------------------------------------------------------------------------------- /OrthographicShaderRP/pack.mcmeta: -------------------------------------------------------------------------------- 1 | { 2 | "pack": { 3 | "pack_format": 28, 4 | "description": "Orthographic Shader\n§bv1.0.2 | By Onnowhere" 5 | } 6 | } -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/pack.mcmeta: -------------------------------------------------------------------------------- 1 | { 2 | "pack": { 3 | "pack_format": 28, 4 | "description": "Core Shaders Custom Template\n§bv1.0.2 | By Onnowhere" 5 | } 6 | } -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/include/ortho_config.glsl: -------------------------------------------------------------------------------- 1 | /* 2 | * Created by Onnowhere (https://github.com/onnowhere) 3 | * Orthographic shader config values 4 | */ 5 | 6 | #define ZOOM 0.0025 7 | -------------------------------------------------------------------------------- /OrthographicShaderRP/README.txt: -------------------------------------------------------------------------------- 1 | HOW TO EDIT VALUES IN THE SHADER 2 | 3 | Go to file: assets/minecraft/shaders/include/ortho_config.glsl 4 | 5 | ZOOM - This value determines how zoomed the orthographic projection is (higher = more zoomed in) -------------------------------------------------------------------------------- /VertexFadeRP/README.txt: -------------------------------------------------------------------------------- 1 | HOW TO EDIT SHADER PROPERTY VALUES 2 | 3 | Go to file: assets/minecraft/shaders/include/vertex_fade.glsl 4 | 5 | distanceThreshold - Increasing this value increases the distance at which fading starts 6 | fadeScale - Increasing this value increases the amount of distance it takes for faces to fade -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/main/rendertype_position_color.vsh: -------------------------------------------------------------------------------- 1 | #version 150 2 | 3 | in vec3 Position; 4 | in vec4 Color; 5 | 6 | uniform mat4 ModelViewMat; 7 | uniform mat4 ProjMat; 8 | 9 | out vec4 vertexColor; 10 | 11 | void main() { 12 | gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0); 13 | 14 | vertexColor = Color; 15 | } 16 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/main/rendertype_end_portal.vsh: -------------------------------------------------------------------------------- 1 | #version 150 2 | 3 | #moj_import 4 | 5 | in vec3 Position; 6 | 7 | uniform mat4 ModelViewMat; 8 | uniform mat4 ProjMat; 9 | 10 | out vec4 texProj0; 11 | 12 | void main() { 13 | gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0); 14 | 15 | texProj0 = projection_from_position(gl_Position); 16 | } 17 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/main/rendertype_position_tex_color.vsh: -------------------------------------------------------------------------------- 1 | #version 150 2 | 3 | in vec3 Position; 4 | in vec2 UV0; 5 | in vec4 Color; 6 | 7 | uniform mat4 ModelViewMat; 8 | uniform mat4 ProjMat; 9 | 10 | out vec2 texCoord0; 11 | out vec4 vertexColor; 12 | 13 | void main() { 14 | gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0); 15 | 16 | texCoord0 = UV0; 17 | vertexColor = Color; 18 | } 19 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/main/rendertype_text_see_through.vsh: -------------------------------------------------------------------------------- 1 | #version 150 2 | 3 | in vec3 Position; 4 | in vec4 Color; 5 | in vec2 UV0; 6 | in vec2 UV2; 7 | 8 | uniform mat4 ModelViewMat; 9 | uniform mat4 ProjMat; 10 | 11 | out vec4 vertexColor; 12 | out vec2 texCoord0; 13 | out vec2 texCoord2; 14 | 15 | void main() { 16 | gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0); 17 | 18 | vertexColor = Color; 19 | texCoord0 = UV0; 20 | texCoord2 = UV2; 21 | } 22 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/main/rendertype_entity_glint.vsh: -------------------------------------------------------------------------------- 1 | #version 150 2 | 3 | in vec3 Position; 4 | in vec4 Color; 5 | in vec2 UV0; 6 | 7 | uniform mat4 ModelViewMat; 8 | uniform mat4 ProjMat; 9 | uniform mat4 TextureMat; 10 | 11 | out float vertexDistance; 12 | out vec4 vertexColor; 13 | out vec2 texCoord0; 14 | 15 | void main() { 16 | gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0); 17 | 18 | vertexDistance = length((ModelViewMat * vec4(Position, 1.0)).xyz); 19 | vertexColor = Color; 20 | texCoord0 = (TextureMat * vec4(UV0, 0.0, 1.0)).xy; 21 | } 22 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/main/rendertype_entity_leash.vsh: -------------------------------------------------------------------------------- 1 | #version 150 2 | 3 | in vec3 Position; 4 | in vec4 Color; 5 | in ivec2 UV2; 6 | 7 | uniform sampler2D Sampler2; 8 | 9 | uniform mat4 ModelViewMat; 10 | uniform mat4 ProjMat; 11 | uniform vec4 ColorModulator; 12 | 13 | out float vertexDistance; 14 | flat out vec4 vertexColor; 15 | 16 | void main() { 17 | gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0); 18 | 19 | vertexDistance = length((ModelViewMat * vec4(Position, 1.0)).xyz); 20 | vertexColor = Color * ColorModulator * texelFetch(Sampler2, UV2 / 16, 0); 21 | } 22 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/main/rendertype_text.vsh: -------------------------------------------------------------------------------- 1 | #version 150 2 | 3 | in vec3 Position; 4 | in vec4 Color; 5 | in vec2 UV0; 6 | in ivec2 UV2; 7 | 8 | uniform sampler2D Sampler2; 9 | 10 | uniform mat4 ModelViewMat; 11 | uniform mat4 ProjMat; 12 | 13 | out float vertexDistance; 14 | out vec4 vertexColor; 15 | out vec2 texCoord0; 16 | 17 | void main() { 18 | gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0); 19 | 20 | vertexDistance = length((ModelViewMat * vec4(Position, 1.0)).xyz); 21 | vertexColor = Color * texelFetch(Sampler2, UV2 / 16, 0); 22 | texCoord0 = UV0; 23 | } -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/main/rendertype_end_portal.vsh: -------------------------------------------------------------------------------- 1 | /* 2 | * Created by Onnowhere (https://github.com/onnowhere) 3 | * Orthographic core vertex shader 4 | */ 5 | 6 | #version 150 7 | 8 | #moj_import 9 | #moj_import 10 | #moj_import 11 | 12 | in vec3 Position; 13 | 14 | uniform mat4 ModelViewMat; 15 | uniform mat4 ProjMat; 16 | 17 | out vec4 texProj0; 18 | 19 | void main() { 20 | mat4 OrthoMat = getOrthoMat(ProjMat, ZOOM); 21 | gl_Position = OrthoMat * ModelViewMat * vec4(Position, 1.0); 22 | 23 | texProj0 = projection_from_position(gl_Position); 24 | } 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | **Download these resource packs from the [Releases page](https://github.com/onnowhere/core_shaders/releases).** 2 | 3 | ---- 4 | 5 | These resource packs utilize the new core shaders introduced in Minecraft Snapshot 21w10a. 6 | 7 | ### Alternatives 8 | 9 | - Alternative to `vsh_utils.glsl`: https://github.com/bradleyq/mc_vanilla_shaders/blob/master/resourcepack-shaders/assets/minecraft/shaders/include/utils.glsl 10 | - Alternative to `CoreShadersCustomTemplateRP`: https://github.com/Godlander/core-shader-template 11 | 12 | ### License 13 | 14 | This project is made available under the [Creative Commons CC0 Public Domain license](LICENSE). 15 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/main/rendertype_position.vsh: -------------------------------------------------------------------------------- 1 | #version 150 2 | 3 | in vec3 Position; 4 | in vec4 Color; 5 | in vec2 UV0; 6 | in vec2 UV2; 7 | in vec3 Normal; 8 | 9 | uniform mat4 ModelViewMat; 10 | uniform mat4 ProjMat; 11 | 12 | out float vertexDistance; 13 | out vec4 vertexColor; 14 | out vec2 texCoord0; 15 | out vec2 texCoord2; 16 | out vec4 normal; 17 | 18 | void main() { 19 | gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0); 20 | 21 | vertexDistance = length((ModelViewMat * vec4(Position, 1.0)).xyz); 22 | vertexColor = Color; 23 | texCoord0 = UV0; 24 | texCoord2 = UV2; 25 | normal = ProjMat * ModelViewMat * vec4(Normal, 0.0); 26 | } 27 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/main/rendertype_position_color.vsh: -------------------------------------------------------------------------------- 1 | /* 2 | * Created by Onnowhere (https://github.com/onnowhere) 3 | * Orthographic core vertex shader 4 | */ 5 | 6 | #version 150 7 | 8 | #moj_import 9 | 10 | in vec3 Position; 11 | in vec4 Color; 12 | 13 | uniform mat4 ModelViewMat; 14 | uniform mat4 ProjMat; 15 | 16 | out vec4 vertexColor; 17 | 18 | void main() { 19 | // Skip GUI 20 | if (!isGUI(ProjMat)) { 21 | // Disable lower hemisphere skybox overlay 22 | gl_Position = vec4(100.0, 100.0, 100.0, -1.0); 23 | } else { 24 | gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0); 25 | } 26 | 27 | vertexColor = Color; 28 | } 29 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/main/rendertype_entity_dynamic.vsh: -------------------------------------------------------------------------------- 1 | #version 150 2 | 3 | in vec3 Position; 4 | in vec4 Color; 5 | in vec2 UV0; 6 | in ivec2 UV2; 7 | in vec3 Normal; 8 | 9 | uniform sampler2D Sampler2; 10 | 11 | uniform mat4 ModelViewMat; 12 | uniform mat4 ProjMat; 13 | 14 | out float vertexDistance; 15 | out vec4 vertexColor; 16 | out vec2 texCoord0; 17 | out vec4 normal; 18 | 19 | void main() { 20 | gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0); 21 | 22 | vertexDistance = length((ModelViewMat * vec4(Position, 1.0)).xyz); 23 | vertexColor = Color * texelFetch(Sampler2, UV2 / 16, 0); 24 | texCoord0 = UV0; 25 | normal = ProjMat * ModelViewMat * vec4(Normal, 0.0); 26 | } 27 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/main/rendertype_entity_colored.vsh: -------------------------------------------------------------------------------- 1 | #version 150 2 | 3 | in vec3 Position; 4 | in vec4 Color; 5 | in vec2 UV0; 6 | in vec2 UV1; 7 | in vec2 UV2; 8 | in vec3 Normal; 9 | 10 | uniform mat4 ModelViewMat; 11 | uniform mat4 ProjMat; 12 | 13 | out float vertexDistance; 14 | out vec4 vertexColor; 15 | out vec2 texCoord0; 16 | out vec2 texCoord1; 17 | out vec2 texCoord2; 18 | out vec4 normal; 19 | 20 | void main() { 21 | gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0); 22 | 23 | vertexDistance = length((ModelViewMat * vec4(Position, 1.0)).xyz); 24 | vertexColor = Color; 25 | texCoord0 = UV0; 26 | texCoord1 = UV1; 27 | texCoord2 = UV2; 28 | normal = ProjMat * ModelViewMat * vec4(Normal, 0.0); 29 | } 30 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/main/rendertype_block.vsh: -------------------------------------------------------------------------------- 1 | #version 150 2 | 3 | #moj_import 4 | 5 | in vec3 Position; 6 | in vec4 Color; 7 | in vec2 UV0; 8 | in ivec2 UV2; 9 | in vec3 Normal; 10 | 11 | uniform sampler2D Sampler2; 12 | 13 | uniform mat4 ModelViewMat; 14 | uniform mat4 ProjMat; 15 | uniform vec3 ChunkOffset; 16 | 17 | out float vertexDistance; 18 | out vec4 vertexColor; 19 | out vec2 texCoord0; 20 | out vec4 normal; 21 | 22 | void main() { 23 | gl_Position = ProjMat * ModelViewMat * vec4(Position + ChunkOffset, 1.0); 24 | 25 | vertexDistance = length((ModelViewMat * vec4(Position + ChunkOffset, 1.0)).xyz); 26 | vertexColor = Color * minecraft_sample_lightmap(Sampler2, UV2); 27 | texCoord0 = UV0; 28 | normal = ProjMat * ModelViewMat * vec4(Normal, 0.0); 29 | } 30 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_water_mask.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_colored", 8 | "fragment": "rendertype_water_mask", 9 | "attributes": [ 10 | ], 11 | "samplers": [ 12 | ], 13 | "uniforms": [ 14 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 15 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 16 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] } 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/position_color.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_position_color", 8 | "fragment": "position_color", 9 | "attributes": [ 10 | "Color" 11 | ], 12 | "samplers": [ 13 | ], 14 | "uniforms": [ 15 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 16 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 17 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/main/rendertype_entity_leash.vsh: -------------------------------------------------------------------------------- 1 | /* 2 | * Created by Onnowhere (https://github.com/onnowhere) 3 | * Orthographic core vertex shader 4 | */ 5 | 6 | #version 150 7 | 8 | #moj_import 9 | #moj_import 10 | 11 | in vec3 Position; 12 | in vec4 Color; 13 | in ivec2 UV2; 14 | 15 | uniform sampler2D Sampler2; 16 | 17 | uniform mat4 ModelViewMat; 18 | uniform mat4 ProjMat; 19 | uniform vec4 ColorModulator; 20 | 21 | out float vertexDistance; 22 | flat out vec4 vertexColor; 23 | 24 | void main() { 25 | mat4 OrthoMat = getOrthoMat(ProjMat, ZOOM); 26 | gl_Position = OrthoMat * ModelViewMat * vec4(Position, 1.0); 27 | 28 | vertexDistance = length((ModelViewMat * vec4(Position, 1.0)).xyz); 29 | vertexColor = Color * ColorModulator * texelFetch(Sampler2, UV2 / 16, 0); 30 | } 31 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/main/rendertype_position_tex_color.vsh: -------------------------------------------------------------------------------- 1 | /* 2 | * Created by Onnowhere (https://github.com/onnowhere) 3 | * Orthographic core vertex shader 4 | */ 5 | 6 | #version 150 7 | 8 | #moj_import 9 | #moj_import 10 | 11 | in vec3 Position; 12 | in vec2 UV0; 13 | in vec4 Color; 14 | 15 | uniform mat4 ModelViewMat; 16 | uniform mat4 ProjMat; 17 | 18 | out vec2 texCoord0; 19 | out vec4 vertexColor; 20 | 21 | void main() { 22 | // Skip Main Menu and GUI 23 | if (!isPanorama(ProjMat) && !isGUI(ProjMat)) { 24 | mat4 OrthoMat = getOrthoMat(ProjMat, ZOOM); 25 | gl_Position = OrthoMat * ModelViewMat * vec4(Position, 1.0); 26 | } else { 27 | gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0); 28 | } 29 | 30 | texCoord0 = UV0; 31 | vertexColor = Color; 32 | } 33 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/position_tex.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_position", 8 | "fragment": "position_tex", 9 | "attributes": [ 10 | "Position", 11 | "UV0" 12 | ], 13 | "samplers": [ 14 | { "name": "Sampler0" } 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] } 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_water_mask.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_block", 8 | "fragment": "rendertype_water_mask", 9 | "attributes": [ 10 | ], 11 | "samplers": [ 12 | ], 13 | "uniforms": [ 14 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 15 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 16 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 17 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/blit_screen.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "blit_screen", 8 | "fragment": "blit_screen", 9 | "attributes": [ 10 | "Position", 11 | "UV", 12 | "Color" 13 | ], 14 | "samplers": [ 15 | { "name": "DiffuseSampler" } 16 | ], 17 | "uniforms": [ 18 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 20 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/main/rendertype_text_see_through.vsh: -------------------------------------------------------------------------------- 1 | /* 2 | * Created by Onnowhere (https://github.com/onnowhere) 3 | * Orthographic core vertex shader 4 | */ 5 | 6 | #version 150 7 | 8 | #moj_import 9 | #moj_import 10 | 11 | in vec3 Position; 12 | in vec4 Color; 13 | in vec2 UV0; 14 | in vec2 UV2; 15 | 16 | uniform mat4 ModelViewMat; 17 | uniform mat4 ProjMat; 18 | 19 | out vec4 vertexColor; 20 | out vec2 texCoord0; 21 | out vec2 texCoord2; 22 | 23 | void main() { 24 | // Skip GUI 25 | if (!isGUI(ProjMat)) { 26 | mat4 OrthoMat = getOrthoMat(ProjMat, ZOOM); 27 | gl_Position = OrthoMat * ModelViewMat * vec4(Position, 1.0); 28 | } else { 29 | gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0); 30 | } 31 | 32 | vertexColor = Color; 33 | texCoord0 = UV0; 34 | texCoord2 = UV2; 35 | } 36 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_water_mask.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_colored", 8 | "fragment": "rendertype_water_mask", 9 | "attributes": [ 10 | ], 11 | "samplers": [ 12 | ], 13 | "uniforms": [ 14 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 15 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 16 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 17 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/position_color_tex.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_position", 8 | "fragment": "position_color_tex", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0" 13 | ], 14 | "samplers": [ 15 | { "name": "Sampler0" } 16 | ], 17 | "uniforms": [ 18 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 20 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_outline.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_colored", 8 | "fragment": "rendertype_outline", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0" 13 | ], 14 | "samplers": [ 15 | { "name": "Sampler0" } 16 | ], 17 | "uniforms": [ 18 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 20 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/position_color.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_position_color", 8 | "fragment": "position_color", 9 | "attributes": [ 10 | "Color" 11 | ], 12 | "samplers": [ 13 | ], 14 | "uniforms": [ 15 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 16 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 17 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 18 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/position_color_lightmap.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_position", 8 | "fragment": "position_color_lightmap", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV2" 13 | ], 14 | "samplers": [ 15 | { "name": "Sampler2" } 16 | ], 17 | "uniforms": [ 18 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 20 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/position_tex_color.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_position_tex_color", 8 | "fragment": "position_tex_color", 9 | "attributes": [ 10 | "Position", 11 | "UV0", 12 | "Color" 13 | ], 14 | "samplers": [ 15 | { "name": "Sampler0" } 16 | ], 17 | "uniforms": [ 18 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 20 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_end_portal.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_end_portal", 8 | "fragment": "rendertype_end_portal", 9 | "attributes": [], 10 | "samplers": [ 11 | { "name": "Sampler0" }, 12 | { "name": "Sampler1" } 13 | ], 14 | "uniforms": [ 15 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 16 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 17 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] }, 18 | { "name": "EndPortalLayers", "type": "int", "count": 1, "values": [ 15 ] } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_end_gateway.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_end_portal", 8 | "fragment": "rendertype_end_portal", 9 | "attributes": [], 10 | "samplers": [ 11 | { "name": "Sampler0" }, 12 | { "name": "Sampler1" } 13 | ], 14 | "uniforms": [ 15 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 16 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 17 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] }, 18 | { "name": "EndPortalLayers", "type": "int", "count": 1, "values": [ 16 ] } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/position_tex.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_position", 8 | "fragment": "position_tex", 9 | "attributes": [ 10 | "Position", 11 | "UV0" 12 | ], 13 | "samplers": [ 14 | { "name": "Sampler0" } 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/block.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_colored", 8 | "fragment": "block", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/main/rendertype_entity_dynamic.vsh: -------------------------------------------------------------------------------- 1 | /* 2 | * Created by Onnowhere (https://github.com/onnowhere) 3 | * Orthographic core vertex shader 4 | */ 5 | 6 | #version 150 7 | 8 | #moj_import 9 | #moj_import 10 | 11 | in vec3 Position; 12 | in vec4 Color; 13 | in vec2 UV0; 14 | in ivec2 UV2; 15 | in vec3 Normal; 16 | 17 | uniform sampler2D Sampler2; 18 | 19 | uniform mat4 ModelViewMat; 20 | uniform mat4 ProjMat; 21 | 22 | out float vertexDistance; 23 | out vec4 vertexColor; 24 | out vec2 texCoord0; 25 | out vec4 normal; 26 | 27 | void main() { 28 | mat4 OrthoMat = getOrthoMat(ProjMat, ZOOM); 29 | gl_Position = OrthoMat * ModelViewMat * vec4(Position, 1.0); 30 | 31 | vertexDistance = length((ModelViewMat * vec4(Position, 1.0)).xyz); 32 | vertexColor = Color * texelFetch(Sampler2, UV2 / 16, 0); 33 | texCoord0 = UV0; 34 | normal = OrthoMat * ModelViewMat * vec4(Normal, 0.0); 35 | } 36 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/position_color_tex_lightmap.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_position", 8 | "fragment": "position_color_tex_lightmap", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2" 14 | ], 15 | "samplers": [ 16 | { "name": "Sampler0" }, 17 | { "name": "Sampler2" } 18 | ], 19 | "uniforms": [ 20 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 21 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/position_tex_lightmap_color.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_position", 8 | "fragment": "position_tex_lightmap_color", 9 | "attributes": [ 10 | "Position", 11 | "UV0", 12 | "UV2", 13 | "Color" 14 | ], 15 | "samplers": [ 16 | { "name": "Sampler0" }, 17 | { "name": "Sampler2" } 18 | ], 19 | "uniforms": [ 20 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 21 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/main/rendertype_entity_glint.vsh: -------------------------------------------------------------------------------- 1 | /* 2 | * Created by Onnowhere (https://github.com/onnowhere) 3 | * Orthographic core vertex shader 4 | */ 5 | 6 | #version 150 7 | 8 | #moj_import 9 | #moj_import 10 | 11 | in vec3 Position; 12 | in vec4 Color; 13 | in vec2 UV0; 14 | 15 | uniform mat4 ModelViewMat; 16 | uniform mat4 ProjMat; 17 | uniform mat4 TextureMat; 18 | 19 | out float vertexDistance; 20 | out vec4 vertexColor; 21 | out vec2 texCoord0; 22 | 23 | void main() { 24 | // Skip GUI 25 | if (!isGUI(ProjMat)) { 26 | mat4 OrthoMat = getOrthoMat(ProjMat, ZOOM); 27 | gl_Position = OrthoMat * ModelViewMat * vec4(Position, 1.0); 28 | } else { 29 | gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0); 30 | } 31 | 32 | vertexDistance = length((ModelViewMat * vec4(Position, 1.0)).xyz); 33 | vertexColor = Color; 34 | texCoord0 = (TextureMat * vec4(UV0, 0.0, 1.0)).xy; 35 | } 36 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_text_see_through.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_text_see_through", 8 | "fragment": "rendertype_text_see_through", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2" 14 | ], 15 | "samplers": [ 16 | { "name": "Sampler0" }, 17 | { "name": "Sampler2" } 18 | ], 19 | "uniforms": [ 20 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 21 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/position_color_tex.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_position", 8 | "fragment": "position_color_tex", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0" 13 | ], 14 | "samplers": [ 15 | { "name": "Sampler0" } 16 | ], 17 | "uniforms": [ 18 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 20 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 21 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_crumbling.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_colored", 8 | "fragment": "rendertype_crumbling", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_lightning.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_colored", 8 | "fragment": "rendertype_lightning", 9 | "attributes": [ 10 | "Color" 11 | ], 12 | "samplers": [ 13 | ], 14 | "uniforms": [ 15 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 16 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 17 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 18 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 19 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] } 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/position_color_lightmap.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_position", 8 | "fragment": "position_color_lightmap", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV2" 13 | ], 14 | "samplers": [ 15 | { "name": "Sampler2" } 16 | ], 17 | "uniforms": [ 18 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 20 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 21 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/position_tex_color.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_position_tex_color", 8 | "fragment": "position_tex_color", 9 | "attributes": [ 10 | "Position", 11 | "UV0", 12 | "Color" 13 | ], 14 | "samplers": [ 15 | { "name": "Sampler0" } 16 | ], 17 | "uniforms": [ 18 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 20 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 21 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_outline.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_colored", 8 | "fragment": "rendertype_outline", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0" 13 | ], 14 | "samplers": [ 15 | { "name": "Sampler0" } 16 | ], 17 | "uniforms": [ 18 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 20 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 21 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/main/rendertype_text.vsh: -------------------------------------------------------------------------------- 1 | /* 2 | * Created by Onnowhere (https://github.com/onnowhere) 3 | * Orthographic core vertex shader 4 | */ 5 | 6 | #version 150 7 | 8 | #moj_import 9 | #moj_import 10 | 11 | in vec3 Position; 12 | in vec4 Color; 13 | in vec2 UV0; 14 | in ivec2 UV2; 15 | 16 | uniform sampler2D Sampler2; 17 | 18 | uniform mat4 ModelViewMat; 19 | uniform mat4 ProjMat; 20 | 21 | out float vertexDistance; 22 | out vec4 vertexColor; 23 | out vec2 texCoord0; 24 | 25 | void main() { 26 | // Skip GUI 27 | if (!isGUI(ProjMat)) { 28 | mat4 OrthoMat = getOrthoMat(ProjMat, ZOOM); 29 | gl_Position = OrthoMat * ModelViewMat * vec4(Position, 1.0); 30 | } else { 31 | gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0); 32 | } 33 | 34 | vertexDistance = length((ModelViewMat * vec4(Position, 1.0)).xyz); 35 | vertexColor = Color * texelFetch(Sampler2, UV2 / 16, 0); 36 | texCoord0 = UV0; 37 | } -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/main/rendertype_entity_colored.vsh: -------------------------------------------------------------------------------- 1 | /* 2 | * Created by Onnowhere (https://github.com/onnowhere) 3 | * Orthographic core vertex shader 4 | */ 5 | 6 | #version 150 7 | 8 | #moj_import 9 | #moj_import 10 | 11 | in vec3 Position; 12 | in vec4 Color; 13 | in vec2 UV0; 14 | in vec2 UV1; 15 | in vec2 UV2; 16 | in vec3 Normal; 17 | 18 | uniform mat4 ModelViewMat; 19 | uniform mat4 ProjMat; 20 | 21 | out float vertexDistance; 22 | out vec4 vertexColor; 23 | out vec2 texCoord0; 24 | out vec2 texCoord1; 25 | out vec2 texCoord2; 26 | out vec4 normal; 27 | 28 | void main() { 29 | mat4 OrthoMat = getOrthoMat(ProjMat, ZOOM); 30 | gl_Position = OrthoMat * ModelViewMat * vec4(Position, 1.0); 31 | 32 | vertexDistance = length((ModelViewMat * vec4(Position, 1.0)).xyz); 33 | vertexColor = Color; 34 | texCoord0 = UV0; 35 | texCoord1 = UV1; 36 | texCoord2 = UV2; 37 | normal = OrthoMat * ModelViewMat * vec4(Normal, 0.0); 38 | } 39 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_translucent_moving_block.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_dynamic", 8 | "fragment": "rendertype_translucent_moving_block", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_translucent_no_crumbling.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_colored", 8 | "fragment": "rendertype_translucent_no_crumbling", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/new_entity.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_colored", 8 | "fragment": "new_entity", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_end_gateway.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_end_portal", 8 | "fragment": "rendertype_end_portal", 9 | "attributes": [], 10 | "samplers": [ 11 | { "name": "Sampler0" }, 12 | { "name": "Sampler1" } 13 | ], 14 | "uniforms": [ 15 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 16 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 17 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] }, 18 | { "name": "EndPortalLayers", "type": "int", "count": 1, "values": [ 16 ] }, 19 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_end_portal.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_end_portal", 8 | "fragment": "rendertype_end_portal", 9 | "attributes": [], 10 | "samplers": [ 11 | { "name": "Sampler0" }, 12 | { "name": "Sampler1" } 13 | ], 14 | "uniforms": [ 15 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 16 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 17 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] }, 18 | { "name": "EndPortalLayers", "type": "int", "count": 1, "values": [ 15 ] }, 19 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/position.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_position", 8 | "fragment": "position", 9 | "attributes": [ 10 | ], 11 | "samplers": [ 12 | ], 13 | "uniforms": [ 14 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 15 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 16 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 17 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 18 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 19 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/block.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_colored", 8 | "fragment": "block", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/main/rendertype_block.vsh: -------------------------------------------------------------------------------- 1 | /* 2 | * Created by Onnowhere (https://github.com/onnowhere) 3 | * Orthographic core vertex shader 4 | */ 5 | 6 | #version 150 7 | 8 | #moj_import 9 | #moj_import 10 | #moj_import 11 | 12 | in vec3 Position; 13 | in vec4 Color; 14 | in vec2 UV0; 15 | in ivec2 UV2; 16 | in vec3 Normal; 17 | 18 | uniform sampler2D Sampler2; 19 | 20 | uniform mat4 ModelViewMat; 21 | uniform mat4 ProjMat; 22 | uniform vec3 ChunkOffset; 23 | 24 | out float vertexDistance; 25 | out vec4 vertexColor; 26 | out vec2 texCoord0; 27 | out vec4 normal; 28 | 29 | void main() { 30 | mat4 OrthoMat = getOrthoMat(ProjMat, ZOOM); 31 | gl_Position = OrthoMat * ModelViewMat * vec4(Position + ChunkOffset, 1.0); 32 | 33 | vertexDistance = length((ModelViewMat * vec4(Position + ChunkOffset, 1.0)).xyz); 34 | vertexColor = Color * minecraft_sample_lightmap(Sampler2, UV2); 35 | texCoord0 = UV0; 36 | normal = OrthoMat * ModelViewMat * vec4(Normal, 0.0); 37 | } 38 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_entity_alpha.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_colored", 8 | "fragment": "rendertype_entity_alpha", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_beacon_beam.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_block", 8 | "fragment": "rendertype_beacon_beam", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_crumbling.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_block", 8 | "fragment": "rendertype_crumbling", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/position_color_tex_lightmap.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_position", 8 | "fragment": "position_color_tex_lightmap", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2" 14 | ], 15 | "samplers": [ 16 | { "name": "Sampler0" }, 17 | { "name": "Sampler2" } 18 | ], 19 | "uniforms": [ 20 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 21 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 23 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/position_tex_lightmap_color.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_position", 8 | "fragment": "position_tex_lightmap_color", 9 | "attributes": [ 10 | "Position", 11 | "UV0", 12 | "UV2", 13 | "Color" 14 | ], 15 | "samplers": [ 16 | { "name": "Sampler0" }, 17 | { "name": "Sampler2" } 18 | ], 19 | "uniforms": [ 20 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 21 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 23 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/main/rendertype_entity.vsh: -------------------------------------------------------------------------------- 1 | #version 150 2 | 3 | #moj_import 4 | 5 | in vec3 Position; 6 | in vec4 Color; 7 | in vec2 UV0; 8 | in ivec2 UV1; 9 | in ivec2 UV2; 10 | in vec3 Normal; 11 | 12 | uniform sampler2D Sampler1; 13 | uniform sampler2D Sampler2; 14 | 15 | uniform mat4 ModelViewMat; 16 | uniform mat4 ProjMat; 17 | 18 | uniform vec3 Light0_Direction; 19 | uniform vec3 Light1_Direction; 20 | 21 | out float vertexDistance; 22 | out vec4 vertexColor; 23 | out vec4 lightMapColor; 24 | out vec4 overlayColor; 25 | out vec2 texCoord0; 26 | out vec4 normal; 27 | 28 | void main() { 29 | gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0); 30 | 31 | vertexDistance = length((ModelViewMat * vec4(Position, 1.0)).xyz); 32 | vertexColor = minecraft_mix_light(Light0_Direction, Light1_Direction, Normal, Color); 33 | lightMapColor = texelFetch(Sampler2, UV2 / 16, 0); 34 | overlayColor = texelFetch(Sampler1, UV1, 0); 35 | texCoord0 = UV0; 36 | normal = ProjMat * ModelViewMat * vec4(Normal, 0.0); 37 | } 38 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_text_see_through.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_text_see_through", 8 | "fragment": "rendertype_text_see_through", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2" 14 | ], 15 | "samplers": [ 16 | { "name": "Sampler0" }, 17 | { "name": "Sampler2" } 18 | ], 19 | "uniforms": [ 20 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 21 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 23 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_crumbling.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_colored", 8 | "fragment": "rendertype_crumbling", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_lightning.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_colored", 8 | "fragment": "rendertype_lightning", 9 | "attributes": [ 10 | "Color" 11 | ], 12 | "samplers": [ 13 | ], 14 | "uniforms": [ 15 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 16 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 17 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 18 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 19 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 20 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_translucent_moving_block.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_block", 8 | "fragment": "rendertype_translucent_moving_block", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_translucent_no_crumbling.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_block", 8 | "fragment": "rendertype_translucent_no_crumbling", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_eyes.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_eyes", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_translucent_moving_block.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_dynamic", 8 | "fragment": "rendertype_translucent_moving_block", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_translucent_no_crumbling.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_colored", 8 | "fragment": "rendertype_translucent_no_crumbling", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/new_entity.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_colored", 8 | "fragment": "new_entity", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_entity_alpha.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_alpha", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/position.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_position", 8 | "fragment": "position", 9 | "attributes": [ 10 | ], 11 | "samplers": [ 12 | ], 13 | "uniforms": [ 14 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 15 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 16 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 17 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 18 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 19 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 20 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/main/rendertype_entity_lightmap_colored.vsh: -------------------------------------------------------------------------------- 1 | #version 150 2 | 3 | #moj_import 4 | 5 | in vec3 Position; 6 | in vec4 Color; 7 | in vec2 UV0; 8 | in vec2 UV1; 9 | in ivec2 UV2; 10 | in vec3 Normal; 11 | 12 | uniform sampler2D Sampler1; 13 | uniform sampler2D Sampler2; 14 | 15 | uniform mat4 ModelViewMat; 16 | uniform mat4 ProjMat; 17 | 18 | uniform vec3 Light0_Direction; 19 | uniform vec3 Light1_Direction; 20 | 21 | out float vertexDistance; 22 | out vec4 vertexColor; 23 | out vec4 overlayColor; 24 | out vec2 texCoord0; 25 | out vec2 texCoord1; 26 | out vec2 texCoord2; 27 | out vec4 normal; 28 | 29 | void main() { 30 | gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0); 31 | 32 | vertexDistance = length((ModelViewMat * vec4(Position, 1.0)).xyz); 33 | vertexColor = minecraft_mix_light(Light0_Direction, Light1_Direction, Normal, Color) * texelFetch(Sampler2, UV2 / 16, 0); 34 | overlayColor = texelFetch(Sampler1, ivec2(UV1), 0); 35 | texCoord0 = UV0; 36 | texCoord1 = UV1; 37 | texCoord2 = UV2; 38 | normal = ProjMat * ModelViewMat * vec4(Normal, 0.0); 39 | } 40 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_entity_alpha.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_colored", 8 | "fragment": "rendertype_entity_alpha", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/position_color_normal.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_position", 8 | "fragment": "position_color_normal", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "Normal" 13 | ], 14 | "samplers": [ 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ModelViewProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 22 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/main/rendertype_position.vsh: -------------------------------------------------------------------------------- 1 | /* 2 | * Created by Onnowhere (https://github.com/onnowhere) 3 | * Orthographic core vertex shader 4 | */ 5 | 6 | #version 150 7 | 8 | #moj_import 9 | #moj_import 10 | 11 | in vec3 Position; 12 | in vec4 Color; 13 | in vec2 UV0; 14 | in vec2 UV2; 15 | in vec3 Normal; 16 | 17 | uniform mat4 ModelViewMat; 18 | uniform mat4 ProjMat; 19 | 20 | out float vertexDistance; 21 | out vec4 vertexColor; 22 | out vec2 texCoord0; 23 | out vec2 texCoord2; 24 | out vec4 normal; 25 | 26 | void main() { 27 | // Skip GUI 28 | if (!isGUI(ProjMat)) { 29 | mat4 OrthoMat = getOrthoMat(ProjMat, ZOOM); 30 | gl_Position = OrthoMat * ModelViewMat * vec4(Position, 1.0); 31 | normal = OrthoMat * ModelViewMat * vec4(Normal, 0.0); 32 | } else { 33 | gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0); 34 | normal = ProjMat * ModelViewMat * vec4(Normal, 0.0); 35 | } 36 | 37 | vertexDistance = length((ModelViewMat * vec4(Position, 1.0)).xyz); 38 | vertexColor = Color; 39 | texCoord0 = UV0; 40 | texCoord2 = UV2; 41 | } 42 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_leash.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_leash", 8 | "fragment": "rendertype_leash", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV2" 13 | ], 14 | "samplers": [ 15 | { "name": "Sampler2" } 16 | ], 17 | "uniforms": [ 18 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 20 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 21 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 22 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 23 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_beacon_beam.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_colored", 8 | "fragment": "rendertype_beacon_beam", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0" 13 | ], 14 | "samplers": [ 15 | { "name": "Sampler0" } 16 | ], 17 | "uniforms": [ 18 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 20 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 21 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 22 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 23 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_entity_shadow.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_colored", 8 | "fragment": "rendertype_entity_shadow", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0" 13 | ], 14 | "samplers": [ 15 | { "name": "Sampler0" } 16 | ], 17 | "uniforms": [ 18 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 20 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 21 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 22 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 23 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_breeze_wind.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_lightmap_colored", 8 | "fragment": "rendertype_breeze_wind", 9 | "samplers": [ 10 | { "name": "Sampler0" }, 11 | { "name": "Sampler2" } 12 | ], 13 | "uniforms": [ 14 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 15 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 16 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 17 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 18 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 19 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 20 | { "name": "FogShape", "type": "int", "count": 1, "values": [ 0 ] } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/position_tex_color_normal.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_position", 8 | "fragment": "position_tex_color_normal", 9 | "attributes": [ 10 | "Position", 11 | "UV0", 12 | "Color", 13 | "Normal" 14 | ], 15 | "samplers": [ 16 | { "name": "Sampler0" } 17 | ], 18 | "uniforms": [ 19 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 20 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 21 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 22 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 23 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 24 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_eyes.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_colored", 8 | "fragment": "rendertype_eyes", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 27 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] } 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/particle.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_dynamic", 8 | "fragment": "particle", 9 | "attributes": [ 10 | "Position", 11 | "UV0", 12 | "Color", 13 | "UV2" 14 | ], 15 | "samplers": [ 16 | { "name": "Sampler0" }, 17 | { "name": "Sampler2" } 18 | ], 19 | "uniforms": [ 20 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 21 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 23 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 24 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 25 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_breeze_wind.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_lightmap_colored", 8 | "fragment": "rendertype_breeze_wind", 9 | "samplers": [ 10 | { "name": "Sampler0" }, 11 | { "name": "Sampler2" } 12 | ], 13 | "uniforms": [ 14 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 15 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 16 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 17 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 18 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 19 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 20 | { "name": "FogShape", "type": "int", "count": 1, "values": [ 0 ] } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_breeze_wind.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_lightmap_colored", 8 | "fragment": "rendertype_breeze_wind", 9 | "samplers": [ 10 | { "name": "Sampler0" }, 11 | { "name": "Sampler2" } 12 | ], 13 | "uniforms": [ 14 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 15 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 16 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 17 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 18 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 19 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 20 | { "name": "FogShape", "type": "int", "count": 1, "values": [ 0 ] } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_text.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_text", 8 | "fragment": "rendertype_text", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2" 14 | ], 15 | "samplers": [ 16 | { "name": "Sampler0" }, 17 | { "name": "Sampler2" } 18 | ], 19 | "uniforms": [ 20 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 21 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 23 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 24 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 25 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/position_color_normal.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_position", 8 | "fragment": "position_color_normal", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "Normal" 13 | ], 14 | "samplers": [ 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ModelViewProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 22 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 23 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_leash.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_leash", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV2" 13 | ], 14 | "samplers": [ 15 | { "name": "Sampler2" } 16 | ], 17 | "uniforms": [ 18 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 20 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 21 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 22 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 23 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_energy_swirl.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_glint", 8 | "fragment": "rendertype_energy_swirl", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0" 13 | ], 14 | "samplers": [ 15 | { "name": "Sampler0" } 16 | ], 17 | "uniforms": [ 18 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 20 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 21 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 22 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 23 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_entity_shadow.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_shadow", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0" 13 | ], 14 | "samplers": [ 15 | { "name": "Sampler0" } 16 | ], 17 | "uniforms": [ 18 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 20 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 21 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 22 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 23 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_leash.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_leash", 8 | "fragment": "rendertype_leash", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV2" 13 | ], 14 | "samplers": [ 15 | { "name": "Sampler2" } 16 | ], 17 | "uniforms": [ 18 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 20 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 21 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 22 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 23 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_beacon_beam.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_colored", 8 | "fragment": "rendertype_beacon_beam", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0" 13 | ], 14 | "samplers": [ 15 | { "name": "Sampler0" } 16 | ], 17 | "uniforms": [ 18 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 20 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 21 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 22 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 23 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_entity_shadow.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_colored", 8 | "fragment": "rendertype_entity_shadow", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0" 13 | ], 14 | "samplers": [ 15 | { "name": "Sampler0" } 16 | ], 17 | "uniforms": [ 18 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 20 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 21 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 22 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 23 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_entity_translucent_emissive.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_lightmap_colored", 8 | "fragment": "rendertype_entity_translucent_emissive", 9 | "samplers": [ 10 | { "name": "Sampler0" }, 11 | { "name": "Sampler1" }, 12 | { "name": "Sampler2" } 13 | ], 14 | "uniforms": [ 15 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 16 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 17 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 18 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 19 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/position_tex_color_normal.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_position", 8 | "fragment": "position_tex_color_normal", 9 | "attributes": [ 10 | "Position", 11 | "UV0", 12 | "Color", 13 | "Normal" 14 | ], 15 | "samplers": [ 16 | { "name": "Sampler0" } 17 | ], 18 | "uniforms": [ 19 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 20 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 21 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 22 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 23 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 24 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 25 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_eyes.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_colored", 8 | "fragment": "rendertype_eyes", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 27 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 28 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 29 | ] 30 | } 31 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_entity_translucent_emissive.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_lightmap_colored", 8 | "fragment": "rendertype_entity_translucent_emissive", 9 | "samplers": [ 10 | { "name": "Sampler0" }, 11 | { "name": "Sampler1" }, 12 | { "name": "Sampler2" } 13 | ], 14 | "uniforms": [ 15 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 16 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 17 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 18 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 19 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/particle.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_dynamic", 8 | "fragment": "particle", 9 | "attributes": [ 10 | "Position", 11 | "UV0", 12 | "Color", 13 | "UV2" 14 | ], 15 | "samplers": [ 16 | { "name": "Sampler0" }, 17 | { "name": "Sampler2" } 18 | ], 19 | "uniforms": [ 20 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 21 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 23 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 24 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 25 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 26 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_entity_translucent_emissive.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_lightmap_colored", 8 | "fragment": "rendertype_entity_translucent_emissive", 9 | "samplers": [ 10 | { "name": "Sampler0" }, 11 | { "name": "Sampler1" }, 12 | { "name": "Sampler2" } 13 | ], 14 | "uniforms": [ 15 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 16 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 17 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 18 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 19 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_text.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_text", 8 | "fragment": "rendertype_text", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2" 14 | ], 15 | "samplers": [ 16 | { "name": "Sampler0" }, 17 | { "name": "Sampler2" } 18 | ], 19 | "uniforms": [ 20 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 21 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 23 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 24 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 25 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 26 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_lines.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_lines", 8 | "fragment": "rendertype_lines", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "Normal" 13 | ], 14 | "samplers": [ 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "LineWidth", "type": "float", "count": 1, "values": [ 1.0 ] }, 21 | { "name": "ScreenSize", "type": "float", "count": 2, "values": [ 1.0, 1.0 ] }, 22 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 23 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 24 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_glint.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_glint", 8 | "fragment": "rendertype_glint", 9 | "attributes": [ 10 | "Position", 11 | "UV0" 12 | ], 13 | "samplers": [ 14 | { "name": "Sampler0" } 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 22 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 23 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_armor_glint.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_glint", 8 | "fragment": "rendertype_armor_glint", 9 | "attributes": [ 10 | "Position", 11 | "UV0" 12 | ], 13 | "samplers": [ 14 | { "name": "Sampler0" } 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 22 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 23 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_entity_glint.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_glint", 8 | "fragment": "rendertype_entity_glint", 9 | "attributes": [ 10 | "Position", 11 | "UV0" 12 | ], 13 | "samplers": [ 14 | { "name": "Sampler0" } 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 22 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 23 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_glint_direct.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_glint", 8 | "fragment": "rendertype_glint_direct", 9 | "attributes": [ 10 | "Position", 11 | "UV0" 12 | ], 13 | "samplers": [ 14 | { "name": "Sampler0" } 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 22 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 23 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_glint_translucent.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_glint", 8 | "fragment": "rendertype_glint_translucent", 9 | "attributes": [ 10 | "Position", 11 | "UV0" 12 | ], 13 | "samplers": [ 14 | { "name": "Sampler0" } 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 22 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 23 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_energy_swirl.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_glint", 8 | "fragment": "rendertype_energy_swirl", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0" 13 | ], 14 | "samplers": [ 15 | { "name": "Sampler0" } 16 | ], 17 | "uniforms": [ 18 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 20 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 21 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 22 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 23 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_armor_entity_glint.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_glint", 8 | "fragment": "rendertype_armor_entity_glint", 9 | "attributes": [ 10 | "Position", 11 | "UV0" 12 | ], 13 | "samplers": [ 14 | { "name": "Sampler0" } 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 22 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 23 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_cutout.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_block", 8 | "fragment": "rendertype_cutout", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ChunkOffset", "type": "float", "count": 3, "values": [ 0.0, 0.0, 0.0 ] }, 24 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 25 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 26 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 27 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_entity_glint_direct.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_glint", 8 | "fragment": "rendertype_entity_glint_direct", 9 | "attributes": [ 10 | "Position", 11 | "UV0" 12 | ], 13 | "samplers": [ 14 | { "name": "Sampler0" } 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 22 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 23 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_solid.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_block", 8 | "fragment": "rendertype_solid", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ChunkOffset", "type": "float", "count": 3, "values": [ 0.0, 0.0, 0.0 ] }, 24 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 25 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 26 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 27 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_tripwire.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_block", 8 | "fragment": "rendertype_tripwire", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ChunkOffset", "type": "float", "count": 3, "values": [ 0.0, 0.0, 0.0 ] }, 24 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 25 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 26 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 27 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_translucent.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_block", 8 | "fragment": "rendertype_translucent", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ChunkOffset", "type": "float", "count": 3, "values": [ 0.0, 0.0, 0.0 ] }, 24 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 25 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 26 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 27 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_cutout_mipped.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_block", 8 | "fragment": "rendertype_cutout_mipped", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ChunkOffset", "type": "float", "count": 3, "values": [ 0.0, 0.0, 0.0 ] }, 24 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 25 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 26 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 27 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_glint.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_glint", 9 | "attributes": [ 10 | "Position", 11 | "UV0" 12 | ], 13 | "samplers": [ 14 | { "name": "Sampler0" } 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 22 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 23 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_entity_glint.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_glint", 9 | "attributes": [ 10 | "Position", 11 | "UV0" 12 | ], 13 | "samplers": [ 14 | { "name": "Sampler0" } 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 22 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 23 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_glint_direct.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_glint_direct", 9 | "attributes": [ 10 | "Position", 11 | "UV0" 12 | ], 13 | "samplers": [ 14 | { "name": "Sampler0" } 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 22 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 23 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_glint.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_glint", 8 | "fragment": "rendertype_glint", 9 | "attributes": [ 10 | "Position", 11 | "UV0" 12 | ], 13 | "samplers": [ 14 | { "name": "Sampler0" } 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 22 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 23 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_lines.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_lines", 8 | "fragment": "rendertype_lines", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "Normal" 13 | ], 14 | "samplers": [ 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "LineWidth", "type": "float", "count": 1, "values": [ 1.0 ] }, 21 | { "name": "ScreenSize", "type": "float", "count": 2, "values": [ 1.0, 1.0 ] }, 22 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 23 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 24 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 25 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_entity_glint_direct.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_glint_direct", 9 | "attributes": [ 10 | "Position", 11 | "UV0" 12 | ], 13 | "samplers": [ 14 | { "name": "Sampler0" } 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 22 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 23 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_glint_translucent.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_glint_translucent", 9 | "attributes": [ 10 | "Position", 11 | "UV0" 12 | ], 13 | "samplers": [ 14 | { "name": "Sampler0" } 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 22 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 23 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_armor_glint.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_glint", 8 | "fragment": "rendertype_armor_glint", 9 | "attributes": [ 10 | "Position", 11 | "UV0" 12 | ], 13 | "samplers": [ 14 | { "name": "Sampler0" } 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 22 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 23 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_solid.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_block", 8 | "fragment": "rendertype_solid", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ChunkOffset", "type": "float", "count": 3, "values": [ 0.0, 0.0, 0.0 ] }, 24 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 25 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 26 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 27 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 28 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 29 | ] 30 | } 31 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_entity_glint.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_glint", 8 | "fragment": "rendertype_entity_glint", 9 | "attributes": [ 10 | "Position", 11 | "UV0" 12 | ], 13 | "samplers": [ 14 | { "name": "Sampler0" } 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 22 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 23 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_glint_direct.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_glint", 8 | "fragment": "rendertype_glint_direct", 9 | "attributes": [ 10 | "Position", 11 | "UV0" 12 | ], 13 | "samplers": [ 14 | { "name": "Sampler0" } 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 22 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 23 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_cutout.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_block", 8 | "fragment": "rendertype_cutout", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ChunkOffset", "type": "float", "count": 3, "values": [ 0.0, 0.0, 0.0 ] }, 24 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 25 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 26 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 27 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 28 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 29 | ] 30 | } 31 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_armor_entity_glint.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_glint", 8 | "fragment": "rendertype_armor_entity_glint", 9 | "attributes": [ 10 | "Position", 11 | "UV0" 12 | ], 13 | "samplers": [ 14 | { "name": "Sampler0" } 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 22 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 23 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_glint_translucent.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_glint", 8 | "fragment": "rendertype_glint_translucent", 9 | "attributes": [ 10 | "Position", 11 | "UV0" 12 | ], 13 | "samplers": [ 14 | { "name": "Sampler0" } 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 22 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 23 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_solid.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_block", 8 | "fragment": "rendertype_solid", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ChunkOffset", "type": "float", "count": 3, "values": [ 0.0, 0.0, 0.0 ] }, 24 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 25 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 26 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 27 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 28 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 29 | ] 30 | } 31 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_cutout_mipped.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_block", 8 | "fragment": "rendertype_cutout_mipped", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ChunkOffset", "type": "float", "count": 3, "values": [ 0.0, 0.0, 0.0 ] }, 24 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 25 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 26 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 27 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 28 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 29 | ] 30 | } 31 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_cutout.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_block", 8 | "fragment": "rendertype_cutout", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ChunkOffset", "type": "float", "count": 3, "values": [ 0.0, 0.0, 0.0 ] }, 24 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 25 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 26 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 27 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 28 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 29 | ] 30 | } 31 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_entity_glint_direct.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_glint", 8 | "fragment": "rendertype_entity_glint_direct", 9 | "attributes": [ 10 | "Position", 11 | "UV0" 12 | ], 13 | "samplers": [ 14 | { "name": "Sampler0" } 15 | ], 16 | "uniforms": [ 17 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 18 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 19 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 20 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 21 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 22 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 23 | { "name": "TextureMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_tripwire.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_block", 8 | "fragment": "rendertype_tripwire", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ChunkOffset", "type": "float", "count": 3, "values": [ 0.0, 0.0, 0.0 ] }, 24 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 25 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 26 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 27 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 28 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 29 | ] 30 | } 31 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_translucent.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_block_translucent", 8 | "fragment": "rendertype_translucent", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ChunkOffset", "type": "float", "count": 3, "values": [ 0.0, 0.0, 0.0 ] }, 24 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 25 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 26 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 27 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 28 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 29 | ] 30 | } 31 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_cutout_mipped.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_block", 8 | "fragment": "rendertype_cutout_mipped", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ChunkOffset", "type": "float", "count": 3, "values": [ 0.0, 0.0, 0.0 ] }, 24 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 25 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 26 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 27 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 28 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 29 | ] 30 | } 31 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_translucent.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_block", 8 | "fragment": "rendertype_translucent", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ChunkOffset", "type": "float", "count": 3, "values": [ 0.0, 0.0, 0.0 ] }, 24 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 25 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 26 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 27 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 28 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 29 | ] 30 | } 31 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_entity_no_outline.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_lightmap_colored", 8 | "fragment": "rendertype_entity_no_outline", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 24 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 25 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 26 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 27 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 28 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 29 | ] 30 | } 31 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_entity_cutout.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_cutout", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_entity_solid.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_solid", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_entity_translucent.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_translucent", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_item_entity_translucent_cull.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_item_entity_translucent_cull", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/main/rendertype_lines.vsh: -------------------------------------------------------------------------------- 1 | #version 150 2 | 3 | in vec3 Position; 4 | in vec4 Color; 5 | in vec3 Normal; 6 | 7 | uniform mat4 ModelViewMat; 8 | uniform mat4 ProjMat; 9 | uniform float LineWidth; 10 | uniform vec2 ScreenSize; 11 | 12 | out float vertexDistance; 13 | out vec4 vertexColor; 14 | 15 | const float VIEW_SHRINK = 1.0 - (1.0 / 256.0); 16 | const mat4 VIEW_SCALE = mat4( 17 | VIEW_SHRINK, 0.0, 0.0, 0.0, 18 | 0.0, VIEW_SHRINK, 0.0, 0.0, 19 | 0.0, 0.0, VIEW_SHRINK, 0.0, 20 | 0.0, 0.0, 0.0, 1.0 21 | ); 22 | 23 | void main() { 24 | vec4 linePosStart = ProjMat * VIEW_SCALE * ModelViewMat * vec4(Position, 1.0); 25 | vec4 linePosEnd = ProjMat * VIEW_SCALE * ModelViewMat * vec4(Position + Normal, 1.0); 26 | 27 | vec3 ndc1 = linePosStart.xyz / linePosStart.w; 28 | vec3 ndc2 = linePosEnd.xyz / linePosEnd.w; 29 | 30 | vec2 lineScreenDirection = normalize((ndc2.xy - ndc1.xy) * ScreenSize); 31 | vec2 lineOffset = vec2(-lineScreenDirection.y, lineScreenDirection.x) * LineWidth / ScreenSize; 32 | 33 | if (lineOffset.x < 0.0) { 34 | lineOffset *= -1.0; 35 | } 36 | 37 | if (gl_VertexID % 2 == 0) { 38 | gl_Position = vec4((ndc1 + vec3(lineOffset, 0.0)) * linePosStart.w, linePosStart.w); 39 | } else { 40 | gl_Position = vec4((ndc1 - vec3(lineOffset, 0.0)) * linePosStart.w, linePosStart.w); 41 | } 42 | 43 | vertexDistance = length((ModelViewMat * vec4(Position, 1.0)).xyz); 44 | vertexColor = Color; 45 | } 46 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_entity_decal.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_lightmap_colored", 8 | "fragment": "rendertype_entity_decal", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_entity_smooth_cutout.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_smooth_cutout", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_entity_cutout_no_cull.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_cutout_no_cull", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/main/rendertype_entity.vsh: -------------------------------------------------------------------------------- 1 | /* 2 | * Created by Onnowhere (https://github.com/onnowhere) 3 | * Orthographic core vertex shader 4 | */ 5 | 6 | #version 150 7 | 8 | #moj_import 9 | #moj_import 10 | #moj_import 11 | 12 | in vec3 Position; 13 | in vec4 Color; 14 | in vec2 UV0; 15 | in ivec2 UV1; 16 | in ivec2 UV2; 17 | in vec3 Normal; 18 | 19 | uniform sampler2D Sampler1; 20 | uniform sampler2D Sampler2; 21 | 22 | uniform mat4 ModelViewMat; 23 | uniform mat4 ProjMat; 24 | 25 | uniform vec3 Light0_Direction; 26 | uniform vec3 Light1_Direction; 27 | 28 | out float vertexDistance; 29 | out vec4 vertexColor; 30 | out vec4 lightMapColor; 31 | out vec4 overlayColor; 32 | out vec2 texCoord0; 33 | out vec4 normal; 34 | 35 | void main() { 36 | // Skip GUI 37 | if (!isGUI(ProjMat)) { 38 | mat4 OrthoMat = getOrthoMat(ProjMat, ZOOM); 39 | gl_Position = OrthoMat * ModelViewMat * vec4(Position, 1.0); 40 | normal = OrthoMat * ModelViewMat * vec4(Normal, 0.0); 41 | } else { 42 | gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0); 43 | normal = ProjMat * ModelViewMat * vec4(Normal, 0.0); 44 | } 45 | 46 | vertexDistance = length((ModelViewMat * vec4(Position, 1.0)).xyz); 47 | vertexColor = minecraft_mix_light(Light0_Direction, Light1_Direction, Normal, Color); 48 | lightMapColor = texelFetch(Sampler2, UV2 / 16, 0); 49 | overlayColor = texelFetch(Sampler1, UV1, 0); 50 | texCoord0 = UV0; 51 | } 52 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_entity_no_outline.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_no_outline", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 24 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 25 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 26 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 27 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 28 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 29 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_armor_cutout_no_cull.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_lightmap_colored", 8 | "fragment": "rendertype_armor_cutout_no_cull", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_entity_cutout_no_cull_z_offset.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_cutout_no_cull_z_offset", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_entity_translucent_cull.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_lightmap_colored", 8 | "fragment": "rendertype_entity_translucent_cull", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/rendertype_item_entity_translucent_cull.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_lightmap_colored", 8 | "fragment": "rendertype_item_entity_translucent_cull", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] } 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_entity_no_outline.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_lightmap_colored", 8 | "fragment": "rendertype_entity_no_outline", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV2", 14 | "Normal" 15 | ], 16 | "samplers": [ 17 | { "name": "Sampler0" }, 18 | { "name": "Sampler2" } 19 | ], 20 | "uniforms": [ 21 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 22 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 23 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 24 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 25 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 26 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 27 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 28 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 29 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_entity_decal.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_decal", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 31 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_entity_solid.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_solid", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 31 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_entity_cutout.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_cutout", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 31 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_entity_solid.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_solid", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 31 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_entity_translucent.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_translucent", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 31 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_entity_cutout.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_cutout", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 31 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_entity_cutout_no_cull.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_cutout_no_cull", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 31 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_entity_smooth_cutout.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_smooth_cutout", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 31 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_entity_translucent_cull.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_translucent_cull", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 31 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_entity_translucent.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_translucent", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 31 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/main/rendertype_entity_lightmap_colored.vsh: -------------------------------------------------------------------------------- 1 | /* 2 | * Created by Onnowhere (https://github.com/onnowhere) 3 | * Orthographic core vertex shader 4 | */ 5 | 6 | #version 150 7 | 8 | #moj_import 9 | #moj_import 10 | #moj_import 11 | 12 | in vec3 Position; 13 | in vec4 Color; 14 | in vec2 UV0; 15 | in vec2 UV1; 16 | in ivec2 UV2; 17 | in vec3 Normal; 18 | 19 | uniform sampler2D Sampler1; 20 | uniform sampler2D Sampler2; 21 | 22 | uniform mat4 ModelViewMat; 23 | uniform mat4 ProjMat; 24 | 25 | uniform vec3 Light0_Direction; 26 | uniform vec3 Light1_Direction; 27 | 28 | out float vertexDistance; 29 | out vec4 vertexColor; 30 | out vec4 overlayColor; 31 | out vec2 texCoord0; 32 | out vec2 texCoord1; 33 | out vec2 texCoord2; 34 | out vec4 normal; 35 | 36 | void main() { 37 | // Skip GUI 38 | if (!isGUI(ProjMat)) { 39 | mat4 OrthoMat = getOrthoMat(ProjMat, ZOOM); 40 | gl_Position = OrthoMat * ModelViewMat * vec4(Position, 1.0); 41 | normal = OrthoMat * ModelViewMat * vec4(Normal, 0.0); 42 | } else { 43 | gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0); 44 | normal = ProjMat * ModelViewMat * vec4(Normal, 0.0); 45 | } 46 | 47 | vertexDistance = length((ModelViewMat * vec4(Position, 1.0)).xyz); 48 | vertexColor = minecraft_mix_light(Light0_Direction, Light1_Direction, Normal, Color) * texelFetch(Sampler2, UV2 / 16, 0); 49 | overlayColor = texelFetch(Sampler1, ivec2(UV1), 0); 50 | texCoord0 = UV0; 51 | texCoord1 = UV1; 52 | texCoord2 = UV2; 53 | } 54 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_entity_cutout_no_cull.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_cutout_no_cull", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 31 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_entity_decal.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_lightmap_colored", 8 | "fragment": "rendertype_entity_decal", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 31 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_entity_smooth_cutout.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_smooth_cutout", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 31 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /VertexFadeRP/assets/minecraft/shaders/core/rendertype_entity_cutout_no_cull_z_offset.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_cutout_no_cull_z_offset", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 31 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_armor_cutout_no_cull.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_lightmap_colored", 8 | "fragment": "rendertype_armor_cutout_no_cull", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 31 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_entity_cutout_no_cull_z_offset.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity", 8 | "fragment": "rendertype_entity_cutout_no_cull_z_offset", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 31 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_entity_translucent_cull.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_lightmap_colored", 8 | "fragment": "rendertype_entity_translucent_cull", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 31 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /CoreShadersCustomTemplateRP/assets/minecraft/shaders/core/rendertype_item_entity_translucent_cull.json: -------------------------------------------------------------------------------- 1 | { 2 | "blend": { 3 | "func": "add", 4 | "srcrgb": "srcalpha", 5 | "dstrgb": "1-srcalpha" 6 | }, 7 | "vertex": "main/rendertype_entity_lightmap_colored", 8 | "fragment": "rendertype_item_entity_translucent_cull", 9 | "attributes": [ 10 | "Position", 11 | "Color", 12 | "UV0", 13 | "UV1", 14 | "UV2", 15 | "Normal" 16 | ], 17 | "samplers": [ 18 | { "name": "Sampler0" }, 19 | { "name": "Sampler1" }, 20 | { "name": "Sampler2" } 21 | ], 22 | "uniforms": [ 23 | { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 24 | { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, 25 | { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, 26 | { "name": "Light0_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 27 | { "name": "Light1_Direction", "type": "float", "count": 3, "values": [0.0, 0.0, 0.0] }, 28 | { "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] }, 29 | { "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] }, 30 | { "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] }, 31 | { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /OrthographicShaderRP/assets/minecraft/shaders/core/main/rendertype_lines.vsh: -------------------------------------------------------------------------------- 1 | /* 2 | * Created by Onnowhere (https://github.com/onnowhere) 3 | * Orthographic core vertex shader 4 | */ 5 | 6 | #version 150 7 | 8 | #moj_import 9 | #moj_import 10 | 11 | in vec3 Position; 12 | in vec4 Color; 13 | in vec3 Normal; 14 | 15 | uniform mat4 ModelViewMat; 16 | uniform mat4 ProjMat; 17 | uniform float LineWidth; 18 | uniform vec2 ScreenSize; 19 | 20 | out float vertexDistance; 21 | out vec4 vertexColor; 22 | 23 | const float VIEW_SHRINK = 1.0 - (1.0 / 256.0); 24 | const mat4 VIEW_SCALE = mat4( 25 | VIEW_SHRINK, 0.0, 0.0, 0.0, 26 | 0.0, VIEW_SHRINK, 0.0, 0.0, 27 | 0.0, 0.0, VIEW_SHRINK, 0.0, 28 | 0.0, 0.0, 0.0, 1.0 29 | ); 30 | 31 | void main() { 32 | mat4 OrthoMat = getOrthoMat(ProjMat, ZOOM); 33 | vec4 linePosStart = OrthoMat * VIEW_SCALE * ModelViewMat * vec4(Position, 1.0); 34 | vec4 linePosEnd = OrthoMat * VIEW_SCALE * ModelViewMat * vec4(Position + Normal, 1.0); 35 | 36 | vec3 ndc1 = linePosStart.xyz / linePosStart.w; 37 | vec3 ndc2 = linePosEnd.xyz / linePosEnd.w; 38 | 39 | vec2 lineScreenDirection = normalize((ndc2.xy - ndc1.xy) * ScreenSize); 40 | vec2 lineOffset = vec2(-lineScreenDirection.y, lineScreenDirection.x) * LineWidth / ScreenSize; 41 | 42 | if (lineOffset.x < 0.0) { 43 | lineOffset *= -1.0; 44 | } 45 | 46 | if (gl_VertexID % 2 == 0) { 47 | gl_Position = vec4((ndc1 + vec3(lineOffset, 0.0)) * linePosStart.w, linePosStart.w); 48 | } else { 49 | gl_Position = vec4((ndc1 - vec3(lineOffset, 0.0)) * linePosStart.w, linePosStart.w); 50 | } 51 | 52 | vertexDistance = length((ModelViewMat * vec4(Position, 1.0)).xyz); 53 | vertexColor = Color; 54 | } 55 | --------------------------------------------------------------------------------