3D Game Shaders for Beginners
github.com
3D Game Shaders for Beginners
1–10 of 46 posts
Re: 3D Game Shaders for Beginners
#2Re: 3D Game Shaders for Beginners
#3What's even more wild, is that modern engines include all of this stuff out of the box, you just have to tick a few check boxes to enable them in your game. :) For example, check out these postprocessing filters built into Unity and Unreal - a ton of person-hours went into these:
https://docs.unity3d.com/Manual/PostProcessingOverview.html
https://docs.unrealengine.com/en-us/Engine/Rendering/PostPro...
Re: 3D Game Shaders for Beginners
#4 int main
( int argc
, char *argv[]
) {
// ...
LColor backgroundColor =
LColor
( generateLightColorPart(207, 1)
, generateLightColorPart(154, 1)
, generateLightColorPart(108, 1)
, 1
);
// ...
}
I can (sort of) see that this makes it easy to comment out parameters - except for the first one...Re: 3D Game Shaders for Beginners
#5Am I just out of touch with what the kids today are doing, or is this formatting really as bonkers as it seems? int main ( int argc , char *argv[] ) { // ... LColor backgroundColor = LColor ( generateLightColorPart(207, 1) , generateLightColorPart(154, 1) , generateLightColorPart(108, 1) , 1 ); // ... } I can (sort of) see that this makes it easy to comment out parameters - except for the first one...
Re: 3D Game Shaders for Beginners
#6Am I just out of touch with what the kids today are doing, or is this formatting really as bonkers as it seems? int main ( int argc , char *argv[] ) { // ... LColor backgroundColor = LColor ( generateLightColorPart(207, 1) , generateLightColorPart(154, 1) , generateLightColorPart(108, 1) , 1 ); // ... } I can (sort of) see that this makes it easy to comment out parameters - except for the first one...
I’ll often reformat when I’m done so it fits our code review style.
Also I’m usually working systemverilog so 5-10 parameters are common and 50 or more isn’t rare.
Re: 3D Game Shaders for Beginners
#7Re: 3D Game Shaders for Beginners
#8Am I just out of touch with what the kids today are doing, or is this formatting really as bonkers as it seems? int main ( int argc , char *argv[] ) { // ... LColor backgroundColor = LColor ( generateLightColorPart(207, 1) , generateLightColorPart(154, 1) , generateLightColorPart(108, 1) , 1 ); // ... } I can (sort of) see that this makes it easy to comment out parameters - except for the first one...
Re: 3D Game Shaders for Beginners
#9Cool! Is there a tutorial for cell shading? (The Borderlands 2 or Paper Mario look.)
Re: 3D Game Shaders for Beginners
#10Am I just out of touch with what the kids today are doing, or is this formatting really as bonkers as it seems? int main ( int argc , char *argv[] ) { // ... LColor backgroundColor = LColor ( generateLightColorPart(207, 1) , generateLightColorPart(154, 1) , generateLightColorPart(108, 1) , 1 ); // ... } I can (sort of) see that this makes it easy to comment out parameters - except for the first one...