Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/codeql-code-scanning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4
uses: github/codeql-action/init@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql-config.yml
queries: security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4
uses: github/codeql-action/autobuild@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4
uses: github/codeql-action/analyze@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4
with:
category: "/language:${{matrix.language}}"
42 changes: 21 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"eslint-config-mdcs": "^5.0.0",
"eslint-plugin-compat": "^7.0.0",
"eslint-plugin-html": "^8.1.3",
"eslint-plugin-jsdoc": "^62.0.0",
"eslint-plugin-jsdoc": "^63.0.0",
"globals": "^17.0.0",
"jpeg-js": "^0.4.4",
"jsdoc": "^4.0.5",
Expand Down
4 changes: 4 additions & 0 deletions src/materials/LineBasicMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ class LineBasicMaterial extends Material {
* Sets the color of the lines using data from a texture. The texture map
* color is modulated by the diffuse `color`.
*
* `map` represents color data, and the texture must be assigned a
* {@link Texture#colorSpace}. Most `map` textures set
* `texture.colorSpace = SRGBColorSpace`.
*
* @type {?Texture}
* @default null
*/
Expand Down
24 changes: 24 additions & 0 deletions src/materials/MeshBasicMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ class MeshBasicMaterial extends Material {
* with {@link Material#transparent} or {@link Material#alphaTest}. The texture map
* color is modulated by the diffuse `color`.
*
* `map` represents color data, and the texture must be assigned a
* {@link Texture#colorSpace}. Most `map` textures set
* `texture.colorSpace = SRGBColorSpace`.
*
* @type {?Texture}
* @default null
*/
Expand All @@ -58,6 +62,11 @@ class MeshBasicMaterial extends Material {
/**
* The light map. Requires a second set of UVs.
*
* `lightMap` represents luminance data, and the texture must be assigned
* a {@link Texture#colorSpace}. Most `lightMap` textures set
* `texture.colorSpace = LinearSRGBColorSpace` and use float-type formats
* such as `.exr` or `.hdr`.
*
* @type {?Texture}
* @default null
*/
Expand All @@ -75,6 +84,9 @@ class MeshBasicMaterial extends Material {
* The red channel of this texture is used as the ambient occlusion map.
* Requires a second set of UVs.
*
* `aoMap` represents non-color data. Any texture assigned must have
* `texture.colorSpace = NoColorSpace` (default).
*
* @type {?Texture}
* @default null
*/
Expand All @@ -93,6 +105,10 @@ class MeshBasicMaterial extends Material {
/**
* Specular map used by the material.
*
* `specularMap` represents color data, and the texture must be assigned a
* {@link Texture#colorSpace}. Most `specularMap` textures set
* `texture.colorSpace = SRGBColorSpace`.
*
* @type {?Texture}
* @default null
*/
Expand All @@ -108,6 +124,9 @@ class MeshBasicMaterial extends Material {
* green in DXT-compressed and uncompressed RGB 565 formats. Luminance-only and
* luminance/alpha textures will also still work as expected.
*
* `alphaMap` represents non-color data. Any texture assigned must have
* `texture.colorSpace = NoColorSpace` (default).
*
* @type {?Texture}
* @default null
*/
Expand All @@ -116,6 +135,11 @@ class MeshBasicMaterial extends Material {
/**
* The environment map.
*
* `envMap` represents luminance data, and the texture must be assigned
* a {@link Texture#colorSpace}. Most `envMap` textures set
* `texture.colorSpace = LinearSRGBColorSpace` and use float-type formats
* such as `.exr` or `.hdr`.
*
* @type {?Texture}
* @default null
*/
Expand Down
10 changes: 10 additions & 0 deletions src/materials/MeshDepthMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ class MeshDepthMaterial extends Material {
* The color map. May optionally include an alpha channel, typically combined
* with {@link Material#transparent} or {@link Material#alphaTest}.
*
* `map` represents color data, and the texture must be assigned a
* {@link Texture#colorSpace}. Most `map` textures set
* `texture.colorSpace = SRGBColorSpace`.
*
* @type {?Texture}
* @default null
*/
Expand All @@ -61,6 +65,9 @@ class MeshDepthMaterial extends Material {
* green in DXT-compressed and uncompressed RGB 565 formats. Luminance-only and
* luminance/alpha textures will also still work as expected.
*
* `alphaMap` represents non-color data. Any texture assigned must have
* `texture.colorSpace = NoColorSpace` (default).
*
* @type {?Texture}
* @default null
*/
Expand All @@ -74,6 +81,9 @@ class MeshDepthMaterial extends Material {
* of each pixel (white being the highest) is mapped against, and
* repositions, the vertices of the mesh.
*
* `displacementMap` represents non-color data. Any texture assigned must have
* `texture.colorSpace = NoColorSpace` (default).
*
* @type {?Texture}
* @default null
*/
Expand Down
10 changes: 10 additions & 0 deletions src/materials/MeshDistanceMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ class MeshDistanceMaterial extends Material {
* The color map. May optionally include an alpha channel, typically combined
* with {@link Material#transparent} or {@link Material#alphaTest}.
*
* `map` represents color data, and the texture must be assigned a
* {@link Texture#colorSpace}. Most `map` textures set
* `texture.colorSpace = SRGBColorSpace`.
*
* @type {?Texture}
* @default null
*/
Expand All @@ -56,6 +60,9 @@ class MeshDistanceMaterial extends Material {
* green in DXT-compressed and uncompressed RGB 565 formats. Luminance-only and
* luminance/alpha textures will also still work as expected.
*
* `alphaMap` represents non-color data. Any texture assigned must have
* `texture.colorSpace = NoColorSpace` (default).
*
* @type {?Texture}
* @default null
*/
Expand All @@ -69,6 +76,9 @@ class MeshDistanceMaterial extends Material {
* of each pixel (white being the highest) is mapped against, and
* repositions, the vertices of the mesh.
*
* `displacementMap` represents non-color data. Any texture assigned must have
* `texture.colorSpace = NoColorSpace` (default).
*
* @type {?Texture}
* @default null
*/
Expand Down
37 changes: 37 additions & 0 deletions src/materials/MeshLambertMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ class MeshLambertMaterial extends Material {
* with {@link Material#transparent} or {@link Material#alphaTest}. The texture map
* color is modulated by the diffuse `color`.
*
* `map` represents color data, and the texture must be assigned a
* {@link Texture#colorSpace}. Most `map` textures set
* `texture.colorSpace = SRGBColorSpace`.
*
* @type {?Texture}
* @default null
*/
Expand All @@ -68,6 +72,11 @@ class MeshLambertMaterial extends Material {
/**
* The light map. Requires a second set of UVs.
*
* `lightMap` represents luminance data, and the texture must be assigned
* a {@link Texture#colorSpace}. Most `lightMap` textures set
* `texture.colorSpace = LinearSRGBColorSpace` and use float-type formats
* such as `.exr` or `.hdr`.
*
* @type {?Texture}
* @default null
*/
Expand All @@ -85,6 +94,9 @@ class MeshLambertMaterial extends Material {
* The red channel of this texture is used as the ambient occlusion map.
* Requires a second set of UVs.
*
* `aoMap` represents non-color data. Any texture assigned must have
* `texture.colorSpace = NoColorSpace` (default).
*
* @type {?Texture}
* @default null
*/
Expand Down Expand Up @@ -122,6 +134,10 @@ class MeshLambertMaterial extends Material {
* emissive color and the emissive intensity. If you have an emissive map,
* be sure to set the emissive color to something other than black.
*
* `emissiveMap` represents color data, and the texture must be assigned a
* {@link Texture#colorSpace}. Most `emissiveMap` textures set
* `texture.colorSpace = SRGBColorSpace`.
*
* @type {?Texture}
* @default null
*/
Expand All @@ -133,6 +149,9 @@ class MeshLambertMaterial extends Material {
* the geometry of the object, only the lighting. If a normal map is defined
* this will be ignored.
*
* `bumpMap` represents non-color data. Any texture assigned must have
* `texture.colorSpace = NoColorSpace` (default).
*
* @type {?Texture}
* @default null
*/
Expand All @@ -154,6 +173,9 @@ class MeshLambertMaterial extends Material {
* convention, the `y` component of `normalScale` should be negated to compensate
* for the different handedness.
*
* `normalMap` represents non-color data. Any texture assigned must have
* `texture.colorSpace = NoColorSpace` (default).
*
* @type {?Texture}
* @default null
*/
Expand Down Expand Up @@ -185,6 +207,9 @@ class MeshLambertMaterial extends Material {
* displacement map with a matching normal map, since the renderer can
* not recompute surface normals from the displaced vertices.
*
* `displacementMap` represents non-color data. Any texture assigned must have
* `texture.colorSpace = NoColorSpace` (default).
*
* @type {?Texture}
* @default null
*/
Expand Down Expand Up @@ -213,6 +238,10 @@ class MeshLambertMaterial extends Material {
/**
* Specular map used by the material.
*
* `specularMap` represents color data, and the texture must be assigned a
* {@link Texture#colorSpace}. Most `specularMap` textures set
* `texture.colorSpace = SRGBColorSpace`.
*
* @type {?Texture}
* @default null
*/
Expand All @@ -228,6 +257,9 @@ class MeshLambertMaterial extends Material {
* green in DXT-compressed and uncompressed RGB 565 formats. Luminance-only and
* luminance/alpha textures will also still work as expected.
*
* `alphaMap` represents non-color data. Any texture assigned must have
* `texture.colorSpace = NoColorSpace` (default).
*
* @type {?Texture}
* @default null
*/
Expand All @@ -236,6 +268,11 @@ class MeshLambertMaterial extends Material {
/**
* The environment map.
*
* `envMap` represents luminance data, and the texture must be assigned
* a {@link Texture#colorSpace}. Most `envMap` textures set
* `texture.colorSpace = LinearSRGBColorSpace` and use float-type formats
* such as `.exr` or `.hdr`.
*
* @type {?Texture}
* @default null
*/
Expand Down
Loading
Loading