Flat Surface Shader Earth
How do I make an flat surface shader earth?
Leveraging the incredible flat surface shader from Matthew Wagerfield (http://matthew.wagerfield.com/flat-surface-shader/), this demo uses simple image (for the time being) masks to create a low-poly earth with animated water. Looking forward to taking this idea and masking concept further.. What is a flat surface shader earth? How do you make a flat surface shader earth? This script and codes were developed by Daniel Yuschick on 25 September 2022, Sunday.
Flat Surface Shader Earth - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Flat Surface Shader Earth</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="container" class="container"> <div class="planet-bg"> <div class="planet-land"></div> <div class="planet-shadow"></div> </div> <div id="output" class="container"> </div> <div id="controls" style="display: none;"> </div> <script src='https://www.danyuschick.com/codepen/earth/js/prefixfree.min.js'></script>
<script src='https://www.danyuschick.com/codepen/earth/js/dat.gui.min.js'></script>
<script src='https://www.danyuschick.com/codepen/earth/js/fss.js'></script>
<script src='https://www.danyuschick.com/codepen/earth/js/example.js'></script> <script src="js/index.js"></script>
</body>
</html>
Flat Surface Shader Earth - Script Codes CSS Codes
body { -webkit-font-smoothing: antialiased; padding: 0; margin: 0;
}
.container { position: relative; height: 768px; width: 1024px;
}
.planet-bg { position: absolute; z-index: 2; height: 768px; width: 100%; background: url(https://www.danyuschick.com/codepen/earth/BG.png) no-repeat center center;
}
.planet-land { width: 100%; height: 768px; background: url(https://www.danyuschick.com/codepen/earth/landMass.png) no-repeat center center;
}
.planet-shadow { position: absolute; top: 0; z-index: 2; width: 100%; height: 768px; background: url(https://www.danyuschick.com/codepen/earth/shadow.png) no-repeat center center;
}
Flat Surface Shader Earth - Script Codes JS Codes
/*
Matthew Wagerfield http://matthew.wagerfield.com/flat-surface-shader/
*/
Developer | Daniel Yuschick |
Username | Yuschick |
Uploaded | September 25, 2022 |
Rating | 4.5 |
Size | 2,075 Kb |
Views | 24,288 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Pac Manufacturing Ghost Generator | 7,435 Kb |
IBM PureSystems - PureApp Emulator | 10,595 Kb |
Archer Pirate Virus - Snap SVG Demo | 7,089 Kb |
Ripples on the Water - Website Design | 6,101 Kb |
Perrelet Turbine in SVGs | 6,576 Kb |
Interactive HTML5 Video Demo | 8,227 Kb |
Responsive Diamond Navigation | 11,560 Kb |
SnapFoo v2 Demo - Loop a Group of Elements Along a Path | 7,083 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Fading Navigation Bar | J-w-v | 2,805 Kb |
SVG Playground | Roygwells | 1,834 Kb |
RRC wrapSwitch | Pshrmn | 2,922 Kb |
Mondrian | Chrisarmstrong | 2,787 Kb |
Fading gradient button | Insprd | 1,713 Kb |
Simple CSS loader. | Cabrera | 2,574 Kb |
CSS background-size - GSAP | Jonathan | 2,209 Kb |
CSS3 Button Examples | Volusion | 3,377 Kb |
Mobile Sub Menu Concept | Berdejitendra | 2,790 Kb |
Product item | Mymahesh11 | 2,256 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!