载入中...
搜索中...
未找到
PrototypeTextures.cpp 文件参考
#include "procgen/texture/PrototypeTextures.h"
#include "image/ImageData.h"
#include "procgen/ParamSchema.h"
#include "procgen/texture/TextureRecipe.h"
#include <algorithm>
#include <array>
#include <cmath>
#include <cstdint>
#include <limits>
#include <string>

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::procgen
 

函数

std::span< const PrototypeTextureDescriptor > eve::procgen::prototypeTextureDescriptors () noexcept
 Return the stable catalogue of 13 procedural prototype patterns.
 
eve::Result< std::unique_ptr< image::ImageData > > eve::procgen::generatePrototypeTexture (std::string_view patternId, const Params &params)
 Generate a parameterized RGBA8 prototype texture without loading an image asset. @ownership On success the caller exclusively owns the returned ImageData. @lifetime The returned image remains valid until the caller releases it; params are borrowed only for this call.
 
void eve::procgen::registerPrototypeTextureRecipes (TextureRecipeRegistry &registry)
 Register all patterns as tex.prototype.* texture recipes.
 

变量说明

◆ a

uint8_t a = 255

在文件 PrototypeTextures.cpp 第 37 行定义.

◆ b

uint8_t b

在文件 PrototypeTextures.cpp 第 36 行定义.

◆ g

uint8_t g

在文件 PrototypeTextures.cpp 第 35 行定义.

◆ height

int height

在文件 PrototypeTextures.cpp 第 42 行定义.

◆ pixels

uint8_t* pixels

在文件 PrototypeTextures.cpp 第 43 行定义.

被这些函数引用 eve::decal::bakeProceduralDecal(), eve::fluids::buildVolumeFluidImageDistribution(), eve::graphics::buildWaterPlanarReflectionPlan(), eve::fluids::FluidSurfaceRenderer::compositeConfiguredSceneRefraction(), eve::fluids::FluidSurfaceRenderer::compositeSceneRefraction(), eve::asset::cookCanonicalImageRgba8(), eve::image::WebPHandler::decode(), eve::asset::detail::decodeBc3Rgba8(), eve::asset::detail::decodeTiffRgba8(), eve::editor::ActionTimelineWidget::draw(), eve::asset::detail::encodeSourcePng(), eve::graphics::exposeCanvasScriptBindings(), eve::procgen::exposeMeshModifierGraph(), eve::fluids::exposeVolumeFluidFactory(), eve::fluids::FluidSurfaceRenderer::FluidSurfaceRenderer(), eve::graphics::SkyWispsAsset::generate(), eve::procgen::generatePrototypeTexture(), eve::procgen::Procgen::generateTerrainAlbedoMap(), eve::procgen::Procgen::generateTerrainSplatMap(), eve::procgen::grayscaleImage(), eve::procgen::heightToNormalImage(), eve::graphics::SkyWispsAsset::load(), eve::graphics::webgpu::Graphics::newCubemap(), eve::fluids::FluidSurfaceRenderer::occludeWithSceneDepth(), eve::procgen::paintHeightToImage(), eve::asset_import::prepareImageImport(), eve::asset_import::prepareUnityNativeTexture(), eve::graphics::webgpu::Graphics::readGBufferToImageData(), eve::graphics_editing::GraphicsOffscreenPreviewService::render(), eve::graphics::VegetationField::restore(), eve::graphics::Water::setDepthGradient(), eve::editor::EditorDock::setRegionSize(), eve::editor::EditorWorkspace::setRegionSize(), eve::animation::AnimTrail::setWidth(), eve::graphics::VegetationField::snapshot(), eve::physics::World::toMeters(), eve::gpuagents::LifeFieldMaterialBinding::updateTexture(), eve::graphics::uploadAtlas(), eve::asset_graphics::GraphicsImageFactoryAdapter::uploadRgba8(), eve::graphics::IImageResourceFactory::uploadRgba8MipChain(), eve::asset_graphics::GraphicsImageFactoryAdapter::uploadRgba8MipChain(), eve::graphics::IImageResourceFactory::uploadRgba8Volume(), eve::asset_graphics::GraphicsImageFactoryAdapter::uploadRgba8Volume() , 以及 eve::graphics::uploadVegetationGpuFieldSet().

◆ r

uint8_t r

在文件 PrototypeTextures.cpp 第 34 行定义.

◆ width

int width

在文件 PrototypeTextures.cpp 第 41 行定义.