Giter Site home page Giter Site logo

three-mtl-test's Introduction

Creating the Effect of Transparent Glass and Plastic in Three.js

Individual chapter sandboxes for Oct 2021 Codrops article "Creating the Effect of Transparent Glass and Plastic in Three.js" (link).

Updates:

Changes will be made to this repo first, then ported to the CodeSandbox instances. This will remain the most up-to-date source for these demos.

Running:

To run these sandboxes, enter the sandbox to run:

$ cd 15

Install dependencies:

$ npm install

Then run the start npm script:

$ npm run start

You can capture screenshots by using the cmd/ctrl + S key combination when the window has focus. They will be saved in the ./output directory.

Sandboxes:

  • 01: Basic IcosahedronGeometry with MeshNormalMaterial (link)
  • 02: Change to MeshPhysicalMaterial (link)
  • 03: Add a light to see the material (link)
  • 04: Add transmission option to make transparent (link)
  • 05: Add Background plane (link)
  • 06: The magic of the thickness option (link)
  • 07: Thickness continued with a sphere (link)
  • 08: Frosted glass using roughness option (link)
  • 09: Different geometries explored (link)
  • 10: Adding envMap (link)
  • 11: Adding clearcoat (link)
  • 12: Adding normalMap (link)
  • 13: Adding post-processing (link)
  • 14: Using with InstancedMesh (link)
  • 15: Full GUI (link)

three-mtl-test's People

Contributors

crnacura avatar flylikebird avatar kellymilligan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.