载入中...
搜索中...
未找到
PotteryTextures.cpp
浏览该文件的文档.
61 const float broad = 0.65f * grain(noise, u, v, 1, 0x9e3779b9u) + 0.35f * grain(noise, u, v, 3, 0x68e31da4u);
67 return std::clamp(0.63f + 0.18f * (broad - 0.5f) + 0.045f * fine - 0.31f * cell.crack + 0.007f * rings, 0.f,
73 return std::clamp(0.55f + 0.34f * (broad - 0.5f) + 0.23f * fine - 0.30f * cell.pore + 0.008f * rings, 0.f,
82 return std::clamp(0.60f + 0.12f * (broad - 0.5f) + 0.07f * fine - 0.04f * cell.pore + 0.004f * rings, 0.f,
85 return std::clamp(0.54f + 0.55f * (broad - 0.5f) + 0.26f * fine - 0.25f * cell.pore + 0.012f * rings, 0.f,
101 {"tex.terracotta", Finish::Clay, {74, 30, 17, 255}, {218, 137, 83, 255}, 0.95f, 0.72f, 1.3f, 0.16f},
102 {"tex.glazed_ceramic", Finish::Glaze, {8, 23, 55, 255}, {53, 135, 177, 255}, 0.28f, 0.12f, 0.7f, 0.025f},
103 {"tex.porcelain", Finish::Porcelain, {210, 211, 204, 255}, {255, 252, 240, 255}, 0.19f, 0.11f, 0.8f, 0.08f},
104 {"tex.celadon", Finish::Celadon, {67, 69, 51, 255}, {166, 201, 169, 255}, 0.40f, 0.15f, 0.9f, 0.025f},
105 {"tex.stoneware", Finish::Stoneware, {37, 22, 13, 255}, {181, 137, 87, 255}, 0.76f, 0.40f, 1.1f, 0.12f}};
113 def.height = [finish](float u, float v, const NoiseField& noise) { return surfaceHeight(finish, u, v, noise); };
118 def.pbr.aoStrength = surface.finish == Finish::Clay || surface.finish == Finish::Stoneware ? 0.8f : 0.2f;
Definition EvpackPointGraphLoader.h:12
std::vector< TextureRecipeDef > potteryTextureDefinitions()
Create terracotta, glazed ceramic, porcelain, celadon and stoneware CPU texture definitions.
Definition PotteryTextures.cpp:93
Deterministic 2D noise helpers for pixel textures and masks.
Definition NoiseField.h:24
A procedural texture is described by an albedo ramp, displacement, optional independent PBR pigment f...
Definition TextureRecipe.h:122