chore: checkpoint web Blender feature-gap work, docs and tests
- update native web_engine sources and rebuilt wasm artifacts - add task cards, status notes and tooling scripts - add web e2e specs, tutorial UI sources and tutorial assets - sync golden task manifests and audit records Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -9,7 +9,7 @@ export const MAX_GPU_TEXTURE_DIMENSION = 16_384;
|
||||
export const MAX_GPU_TEXTURE_ASSETS = 256;
|
||||
export const MAX_UDIM_TILES = 64;
|
||||
|
||||
export type GPUTextureUsage = "BASE_COLOR" | "NORMAL" | "EMISSIVE" | "DATA" | "ENVIRONMENT" | "UDIM_TILE";
|
||||
export type GPUTextureUsage = "BASE_COLOR" | "NORMAL" | "METALLIC" | "ROUGHNESS" | "EMISSIVE" | "ALPHA" | "BUMP" | "DATA" | "ENVIRONMENT" | "UDIM_TILE";
|
||||
export type GPUTextureColorSpace = "SRGB" | "NON_COLOR" | "LINEAR";
|
||||
|
||||
export interface GPUTextureAssetRequest {
|
||||
@@ -109,7 +109,10 @@ function materialUsages(materials: MaterialIR[]): Map<string, Set<GPUTextureUsag
|
||||
};
|
||||
for (const material of materials) {
|
||||
if (material.normalImageId) add(material.normalImageId, "NORMAL");
|
||||
for (const imageId of material.imageIds ?? []) add(imageId, imageId === material.normalImageId ? "NORMAL" : "BASE_COLOR");
|
||||
for (const binding of material.textureBindings ?? []) add(binding.imageId, binding.usage === "EMISSION" ? "EMISSIVE" : binding.usage);
|
||||
for (const imageId of material.imageIds ?? []) {
|
||||
if (!material.textureBindings?.some((binding) => binding.imageId === imageId)) add(imageId, imageId === material.normalImageId ? "NORMAL" : "BASE_COLOR");
|
||||
}
|
||||
for (const node of material.nodes ?? []) {
|
||||
if (node.type === "IMAGE_TEXTURE" && node.imageId) add(node.imageId, node.imageId === material.normalImageId ? "NORMAL" : "BASE_COLOR");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user