We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to mix the colors of two volumeActors that overlap each other,but I cannot find anything that works.
const replaceShader = (volumeMapper: vtkVolumeMapper) => { const mapperViewProp = volumeMapper.getViewSpecificProperties() mapperViewProp.OpenGL = { ShaderReplacements: [], VertexShaderCode: '', FragmentShaderCode: '', GeometryShaderCode: '', } mapperViewProp.OpenGL.ShaderReplacements.push({ shaderType: 'Fragment', originalValue: '//VTK:CustomColorMix', replaceFirst: true, replacementValue: '//VTK::Color::Impl\n gl_FragColor = vec4(0.0,1.0,0.0,1.0);\n', replaceAll: false, }) }
But that doesn't work either.
So I wonder if there‘s a way to make it?
The text was updated successfully, but these errors were encountered:
You might want to look at this branch that has been merged into beta.
beta
Sorry, something went wrong.
No branches or pull requests
Motivation
I want to mix the colors of two volumeActors that overlap each other,but I cannot find anything that works.
Detailed Description
const replaceShader = (volumeMapper: vtkVolumeMapper) => {
const mapperViewProp = volumeMapper.getViewSpecificProperties()
mapperViewProp.OpenGL = {
ShaderReplacements: [],
VertexShaderCode: '',
FragmentShaderCode: '',
GeometryShaderCode: '',
}
mapperViewProp.OpenGL.ShaderReplacements.push({
shaderType: 'Fragment',
originalValue: '//VTK:CustomColorMix',
replaceFirst: true,
replacementValue: '//VTK::Color::Impl\n gl_FragColor = vec4(0.0,1.0,0.0,1.0);\n',
replaceAll: false,
})
}
But that doesn't work either.
So I wonder if there‘s a way to make it?
The text was updated successfully, but these errors were encountered: