Comments (3)
Try adding the entries between 8 and 9
from ebin-shaders.
Just tried, but didn't work. Here's the file itself:
`float GetMaterialIDs(int mc_ID) { // Gather material masks
#if defined gbuffers_hand
return 5.0;
#endif
float materialID;
switch(mc_ID) {
case 31: // Tall Grass
case 37: // Dandelion
case 38: // Rose
case 59: // Wheat
case 83: // Sugar Cane
case 141: // Carrot
case 142: // Potatoes
case 175: // Double Tall Grass
case 18: // Generic leaves
case 106: // Vines
case 161: // New leaves
materialID = 2.0; break; // Translucent
case 8:
case 377:
case 378:
case 379:
case 380:
case 707:
case 708:
case 709:
case 710:
case 1259:
case 1260:
case 1278:
case 1279:
case 1280:
case 1281:
case 1282:
case 1480:
case 1904:
case 1905:
case 1906:
case 1907:
case 1908:
case 1909:
case 1910:
case 1911:
case 1914:
case 1915:
case 1919:
case 2242:
case 2243:
case 2244:
case 2245:
case 2246:
case 2247:
case 2248:
case 2786:
case 2787:
case 2788:
case 3584:
case 3585:
case 3586:
case 3587:
case 3588:
case 3589:
case 3590:
case 3591:
case 3592:
case 3593:
case 3594:
case 3595:
case 3596:
case 3597:
case 3598:
case 3599:
case 3600:
case 3684:
case 3685:
case 3686:
case 3687:
case 3688:
case 3689:
case 3690:
case 3691:
case 3692:
case 3693:
case 3694:
case 3695:
case 3696:
case 3697:
case 3698:
case 3699:
case 3700:
case 3701:
case 3702:
case 3703:
case 3704:
case 3705:
case 3706:
case 3707:
case 3708:
case 3709:
case 3710:
case 3711:
case 3712:
case 3713:
case 3714:
case 3715:
case 3716:
case 3717:
case 9:
materialID = 4.0; break; // Water
default:
materialID = 1.0;
}
return materialID;
}
`
from ebin-shaders.
The materialID wasn't being used to determine water later in the shader, I believe I fixed with a recent commit, but you should try it out.
from ebin-shaders.
Related Issues (20)
- caves are not dark at all HOT 3
- Itemframe items appear black (/transparent if enchanted)
- Reflective rain ground still not fixed inside HOT 2
- add proper ozone distribution HOT 7
- Water reflecting sky inside
- Pom deformation HOT 1
- My computer doesn't support the "shadow" program HOT 5
- Waves are dumb and etc HOT 1
- Weird Lines in Water
- Clear weather lighting while raining
- End & Nether sky broken
- Small lighting issue. HOT 1
- Specular maps bug
- pom and signs/chests
- No underwater shading HOT 1
- Campfire Smoke is buggy HOT 1
- Reflection on tools, food and text
- Reflections everywhere when itΒ΄s raining HOT 1
- Character texture is reflective
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ebin-shaders.