aframevr / aframevr/aframe

missing/add material.alphaMap to standard material.js

Open
#3,359 1 comment 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
JavaScript
Stars
17.6k
Forks
4.4k
PR merge metrics
No merged PRs in 30d

Description

Description:

THREE.js seems to support alphaMap transparency texture out of the box,
https://threejs.org/docs/index.html#api/materials/MeshStandardMaterial

so it would be very handy to have it supported in the standard material in A-Frame as well for plenty of things ...

  • A-Frame Version: 7.0 Master
  • Platform / Device: all

https://github.com/aframevr/aframe/blob/v0.7.0/src/shaders/standard.js

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/shaders/standard.js at the v0.7.0 reference in the issue, then compare A-Frame’s standard material with THREE.MeshStandardMaterial and its alphaMap support. Done means the standard material exposes and uses alphaMap consistently with the documented THREE.js behavior; no test file is mentioned in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, three.js
Domain
computer-graphics
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.