Unity-Technologies / Unity-Technologies/Unity.Mathematics

Color wise Component swizzle and function on vector types

Open
#183 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
1.4k
Forks
159
PR merge metrics
No merged PRs in 30d

Description

For shader language compatibility and ease of use.
float4.rgba alike swizzle is expected.
And color-wise functions are expected too.
For example:
HsvToRgb()
RgbToHsv()
GammarToLinear()
LinearToGammar()

Contributor guide

No contributing guide indexed for this repository

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

The issue names no files, tests, or entry points. Start by locating the vector types and existing math functions in the repository, then review the shader-compatibility requirements for color swizzles and conversions. Done means an agreed API and implementation for rgba-style swizzles plus HsvToRgb, RgbToHsv, GammaToLinear, and LinearToGamma behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
game-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.