Giter Club home page Giter Club logo

fancy-text-decoder-shader-threejs's Introduction

Fancy Text Reveal Decoding Shader Project

text decoder

Description

This project leverages the power of WebGL via Three.js and GLSL shaders to present a captivating text decoding experience. It showcases five distinctive text reveal effects, each with its unique animation style that can be used for website intro animations, etc.

Deployed Version

For live demo please visit ๐Ÿ‘‰ https://text-decoder-alpha.vercel.app/

Technologies

The project uses the following technologies:

  • Three.js for 3D WebGL rendering
  • GLSL Shaders for custom graphical effects
  • GSAP for robust and smooth animations
  • lil-gui for an interactive GUI for controlling shader parameters
  • Vite as a modern and fast build tool, configured to support GLSL

Setup Instructions

Please follow these setup instructions to get the project running locally:

Prerequisites

  • Node.js installed on your system.

Installation

Clone the repository and install dependencies:

git clone https://github.com/hkzone/fancy-text-decoder-shader-threejs.git
cd fancy-text-decoder-shader-threejs
npm install

Run the development server:

npm run dev

Build for production:

npm run build

The production-ready files will be in the dist/ folder.

Shader Features

Each of the five text decoding effects is meticulously crafted to showcase various visual styles.

Uniforms

The shader uses several uniform variables including time, resolution, and textures to drive the animation logic.

Functions

text(): Creates the visual representation of text characters from a sprite sheet texture. shine(): Adds light and contrast dynamics to the text to emphasize the decoding effect. main(): Serves as the entry point for fragment shader operations to render the final visual effect to the screen.

Uniforms Control

lil-gui is used to create a GUI for live interaction with shader uniforms. Press 'h' to toggle the controls visibility in the UI.

Project Structure

  • src/script.js: Main JavaScript entry point for setting up the project and controling the logic.
  • src/style.css: Styles for the canvas and any HTML UI.
  • src/rendering.js: Sets up the Three.js rendering.
  • src/shaders/: Directory containing GLSL shader files (.glsl).

Contributing

If you'd like to contribute, please fork the repository, create a feature branch, and submit a pull request with your changes.

License

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License. For more information, see LICENSE or visit Creative Commons License

Social

Made By Vitaliy Vlasyuk @hkzone

Twitter - Portfolio - Github

fancy-text-decoder-shader-threejs's People

Contributors

hkzone 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.