diff --git a/directives/block.properties.md b/directives/block.properties.md new file mode 100644 index 0000000..6978b6b --- /dev/null +++ b/directives/block.properties.md @@ -0,0 +1,41 @@ +# `block.properties` + +## Implementation Support + +* ❌ ShadersMod +* ✔️ OptiFine +* ✔️ Iris + +## Block Rendering Options + +### Render Layer Changes + +Layer Changes allow you to change what layer a block renders on. + +#### Representation + +```java +layer.solid= +layer.cutout= +layer.cutout_mipped= +layer.translucent= +``` + +#### Example + +``` +# Change Stone To A Translucent Block +layer.translucent=stone +``` + +#### Default + +No change. If this option is not present then the blocks render in the way that mojang has chosen. + +#### Implementation Support + +* ❌ ShadersMod +* ✔️ OptiFine +* ✔️ Iris + +Note: Optifine Only Has Partial Support diff --git a/directives/properties.md b/directives/shader.properties.md similarity index 73% rename from directives/properties.md rename to directives/shader.properties.md index f51d621..22f94b1 100644 --- a/directives/properties.md +++ b/directives/shader.properties.md @@ -6,6 +6,49 @@ * ✔️ OptiFine * ✔️ Iris +## Custom Textures + +### Registering + +Custom Textures allow you to create a custom texture2D sampler, allowing you to use them. + +#### Representation + +```java +customTexture. = +``` + +Paths use the root folder of shaders + +#### Example + +``` +# Addded A LUT for Sunlight with the texture in shaders/textures +customTexture.sunlightLUT = textures/sunlightLUT.png +``` + +#### Usage + +``` +#In an fsh file, using the example above +uniform sampler2D sunlightLUT; // The Sunlight LUT + +#Gets the color at 0.5, 0 +vec4 color = vec4(texture(sunlightLUT, vec2(0.5, 0)), 1.0) +``` + +#### Default + +No change. If this option is not present, then no custom samplers are present. + +#### Implementation Support + +* ❌ ShadersMod +* ✔️ OptiFine +* ✔️ Iris + +Note: Optifine has diffrent syntax. + ## Rendering detail toggles ### Clouds mode