GithubHelp home page GithubHelp logo

Comments (9)

Eragon-Brisingr avatar Eragon-Brisingr commented on September 25, 2024

Unfortunately, UE5 EA has some change let can not enable other data buffer without change soruce code. So the way only enable in under 4.26 engine.

from toonshader.

kriNon avatar kriNon commented on September 25, 2024

Have you looked at UE5.1?
I think it might be possible to add shader models using the new strata materials system.

from toonshader.

Eragon-Brisingr avatar Eragon-Brisingr commented on September 25, 2024

Have you looked at UE5.1? I think it might be possible to add shader models using the new strata materials system.

Not yet, can you hint me some idea?

from toonshader.

kriNon avatar kriNon commented on September 25, 2024

I think we can implement shading models in StrataEvaluation.ush
Maybe the strata module can be overridden?

Maybe we can insert code somehow? Shader File Preprocessing?

from toonshader.

Eragon-Brisingr avatar Eragon-Brisingr commented on September 25, 2024

const FString PluginShaderOverrideDir = FPaths::Combine(IPluginManager::Get().FindPlugin(TEXT("ToonShader"))->GetBaseDir(), TEXT("ShadersOverride"));
const FString ShaderDir = FPaths::Combine(FPaths::EngineDir(), TEXT("Shaders"));
bool bAlwaysReplaceShaderDirectory = PlatformFile.DirectoryExists(*FPaths::Combine(ShaderDir, TEXT("Private"), TEXT("Toon"))) == false;
if (bAlwaysReplaceShaderDirectory == false)
{
FConfigFile* ConfigFile = GConfig->Find(*FPaths::Combine(FPaths::ProjectConfigDir(), TEXT("DefaultToonShaderSettings.ini")), false);
if (ConfigFile)
{
ConfigFile->GetBool(TEXT("/Script/ToonShaderBootstrap.ToonShaderBootstrapSettings"), TEXT("bAlwaysReplaceShaderDirectory"), bAlwaysReplaceShaderDirectory);
}
}
if (bAlwaysReplaceShaderDirectory)
{
const bool Succeed = PlatformFile.CopyDirectoryTree(*ShaderDir, *FPaths::Combine(PluginShaderOverrideDir, TEXT("Override")), true);
if (IsRunningCommandlet() == false && Succeed == false)
{
FMessageDialog::Open(EAppMsgType::Ok, LOCTEXT("替换卡通材质失败警告", "向引擎目录[Engine/Shaders]下替换文件失败\n可能是文件访问权限问题"));
}
}

BootstrapModule replace engine shader file. (Shader File Preprocessing

But we can not enable other data buffer without change soruce code, because UE5 flexible GBuffer is enable.
First major checkin for flexible GBuffer.

from toonshader.

kriNon avatar kriNon commented on September 25, 2024

Why is flexible GBuffer an issue?

How do the other strata materials work with flexible GBuffer?

from toonshader.

Eragon-Brisingr avatar Eragon-Brisingr commented on September 25, 2024

When no flexible GBuffer, standard shader model has additional two GBuffer can use, but when flexible GBuffer enable, every shader model know max use GBuffer count, so additional GBuffer is gone.

from toonshader.

kriNon avatar kriNon commented on September 25, 2024

image
Can we do it the same way this works? Or we can't use GBuffer.customData?

from toonshader.

Eragon-Brisingr avatar Eragon-Brisingr commented on September 25, 2024

I think only change engine source code to enable additional data buffer...

from toonshader.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.