From 9bb9fe7037a99ce2194e15577d7a4c8b41467553 Mon Sep 17 00:00:00 2001 From: Quentin Bazin Date: Sun, 3 Feb 2019 13:55:34 +0100 Subject: [PATCH] [README.md] Updated. --- README.md | 19 ++++++++++++++++++- resources/shaders/game.f.glsl | 4 +++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c031deab..6236f7ad 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,25 @@ [![Documentation](https://codedocs.xyz/Quent42340/OpenMiner.svg)](https://codedocs.xyz/Quent42340/OpenMiner/) [![License](https://img.shields.io/badge/license-LGPLv2.1%2B-blue.svg)](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html) [![Discord](https://img.shields.io/discord/527527086756200458.svg?style=popout)](https://discord.gg/eN8k8wt) +[![Donate](https://img.shields.io/badge/donate-paypal-brightgreen.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66DH462V7TA6N&source=url) -- OpenMiner is a Minecraft-like game engine. +- [Wiki](#wiki) +- [Project goal](#project-goal) +- [Screenshots](#screenshots) +- [Keys](#keys) +- [How to compile](#how-to-compile) +- [Discussion](#discussion) +- [Project status](#project-status) +- [Previous versions](#previous-versions) +- [Credits](#credits) + +## Wiki + +- [Lua API Overview](https://github.com/Quent42340/OpenMiner/wiki/Lua-API-Overview) + +## Project goal + +The long-term goal of this project is to provide a viable alternative to Minecraft modding. ## Screenshots diff --git a/resources/shaders/game.f.glsl b/resources/shaders/game.f.glsl index a8f79ee0..2858f635 100644 --- a/resources/shaders/game.f.glsl +++ b/resources/shaders/game.f.glsl @@ -33,8 +33,10 @@ void main() { /* color.a = 0.5; */ } else if (v_blockID == 3) { // Grass - if (color.r == color.g && color.r == color.b) + if (color.r == color.g && color.r == color.b) { color += vec4(-0.3, -0.1, -0.25, 0); + /* color += vec4(-0.4, -0.15, -0.3, 0); */ + } } // Very cheap "transparency": don't draw pixels with a low alpha value