dolphin/Source/Core/VideoCommon
Stenzek 51724c1ccd LightingShaderGen: Always calculate lighting for both color channels
Cel-damage depends on lighting being calculated for the first channel
even though there is no color in the vertex format (defaults to the
material color). If lighting for the channel is not enabled, the vertex
will use the default color as before.

The default value of the color is determined by the number of elements in
the vertex format. This fixes the grey cubes in Super Mario Sunshine.

If the color channel count is zero, we set the color to black before the
end of the vertex shader. It's possible that this would be undefined
behavior on hardware if a vertex color index that was greater than the
channel count was used within TEV.
2020-11-20 15:54:04 -08:00
..
AbstractFramebuffer.cpp Move most backend functionality to VideoCommon 2019-02-19 16:57:54 +10:00
AbstractFramebuffer.h
AbstractPipeline.h
AbstractShader.h
AbstractStagingTexture.cpp
AbstractStagingTexture.h
AbstractTexture.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
AbstractTexture.h
AsyncRequests.cpp Core: Skip duplicate frames when using frame advance 2020-04-09 11:39:29 +02:00
AsyncRequests.h Core: Skip duplicate frames when using frame advance 2020-04-09 11:39:29 +02:00
AsyncShaderCompiler.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
AsyncShaderCompiler.h
BoundingBox.cpp
BoundingBox.h
BPFunctions.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
BPFunctions.h
BPMemory.cpp
BPMemory.h Externals: Add zstd 2020-05-13 20:53:10 +02:00
BPStructs.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
BPStructs.h
CMakeLists.txt VideoCommon: Add Free Look camera with separate modes 2020-05-03 13:31:47 -05:00
CommandProcessor.cpp Fix translatable strings which contain non-positional arguments 2020-11-20 20:24:30 +01:00
CommandProcessor.h
ConstantManager.h LightingShaderGen: Always calculate lighting for both color channels 2020-11-20 15:54:04 -08:00
CPMemory.cpp
CPMemory.h
DataReader.h DataReader: Make use of if constexpr where applicable 2020-10-20 08:42:32 -04:00
DriverDetails.cpp Re-enable GPU Texture Decoding under MoltenVK 2020-10-08 10:11:02 -04:00
DriverDetails.h DriverDetails: Remove bug for broken GPU Texture Decoding 2020-10-08 10:13:40 -04:00
Fifo.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
Fifo.h Fifo: const correctness 2017-03-26 23:08:33 -04:00
FPSCounter.cpp
FPSCounter.h
FramebufferManager.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
FramebufferManager.h FramebufferManager: Fix invalid readback of EFB D24S8 depth 2020-05-24 15:36:04 +10:00
FramebufferShaderGen.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
FramebufferShaderGen.h
FrameDump.cpp FrameDump Logging: Separate log type and migrate to fmt 2020-11-10 17:17:43 +01:00
FrameDump.h VideoCommon/FrameDump: Remove code for older versions of avcodec. 2020-10-23 14:43:50 -05:00
FreeLookCamera.cpp FreeLookCamera: Fix savestate branch inconsistency. 2020-06-28 02:31:37 +02:00
FreeLookCamera.h VideoCommon: change freelook camera fov step size and expose it 2020-06-25 13:34:42 -05:00
GeometryShaderGen.cpp ShaderGenCommon: Rename WriteFmt() to Write() 2020-11-09 02:31:49 -05:00
GeometryShaderGen.h
GeometryShaderManager.cpp
GeometryShaderManager.h
GXPipelineTypes.h LightingShaderGen: Always calculate lighting for both color channels 2020-11-20 15:54:04 -08:00
HiresTextures_DDSLoader.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
HiresTextures.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
HiresTextures.h InputCommon: Introducing the "Dynamic Input Texture". Configuration links an emulated input action to an image based on what host key is defined for that emulated input. Specific regions are called out in configuration that mark where to replace an input button with a host key image. 2020-10-03 17:10:35 -05:00
ImageWrite.cpp Fix translatable strings which contain non-positional arguments 2020-11-20 20:24:30 +01:00
ImageWrite.h
IndexGenerator.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
IndexGenerator.h
LightingShaderGen.cpp LightingShaderGen: Always calculate lighting for both color channels 2020-11-20 15:54:04 -08:00
LightingShaderGen.h LightingShaderGen: Always calculate lighting for both color channels 2020-11-20 15:54:04 -08:00
LookUpTables.h
NativeVertexFormat.h
NetPlayChatUI.cpp
NetPlayChatUI.h
NetPlayGolfUI.cpp
NetPlayGolfUI.h
OnScreenDisplay.cpp Android: Move OSD out of the way when menu is open 2020-09-16 18:36:15 +02:00
OnScreenDisplay.h Android: Move OSD out of the way when menu is open 2020-09-16 18:36:15 +02:00
OpcodeDecoding.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
OpcodeDecoding.h
PerfQueryBase.cpp
PerfQueryBase.h
PixelEngine.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
PixelEngine.h
PixelShaderGen.cpp LightingShaderGen: Always calculate lighting for both color channels 2020-11-20 15:54:04 -08:00
PixelShaderGen.h LightingShaderGen: Always calculate lighting for both color channels 2020-11-20 15:54:04 -08:00
PixelShaderManager.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
PixelShaderManager.h
PostProcessing.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
PostProcessing.h
RenderBase.cpp Fix translatable strings which contain non-positional arguments 2020-11-20 20:24:30 +01:00
RenderBase.h VideoCommon: FrameDump fixes/cleanups. 2020-10-22 12:17:26 -05:00
RenderState.cpp
RenderState.h
SamplerCommon.h Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00
sfont.inc
ShaderCache.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
ShaderCache.h VideoCommon/ShaderGenCommon: Make template functions regular functions 2020-05-25 21:12:29 -04:00
ShaderGenCommon.cpp ShaderGenCommon: Rename WriteFmt() to Write() 2020-11-09 02:31:49 -05:00
ShaderGenCommon.h LightingShaderGen: Always calculate lighting for both color channels 2020-11-20 15:54:04 -08:00
Statistics.cpp
Statistics.h
TextureCacheBase.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
TextureCacheBase.h InputCommon: Introducing the "Dynamic Input Texture". Configuration links an emulated input action to an image based on what host key is defined for that emulated input. Specific regions are called out in configuration that mark where to replace an input button with a host key image. 2020-10-03 17:10:35 -05:00
TextureConfig.cpp
TextureConfig.h
TextureConversionShader.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
TextureConversionShader.h
TextureConverterShaderGen.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
TextureConverterShaderGen.h
TextureDecoder_Common.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
TextureDecoder_Generic.cpp
TextureDecoder_Util.h
TextureDecoder_x64.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
TextureDecoder.h
UberShaderCommon.cpp LightingShaderGen: Always calculate lighting for both color channels 2020-11-20 15:54:04 -08:00
UberShaderCommon.h UberShaderCommon: Migrate over to fmt 2020-10-20 06:22:48 -04:00
UberShaderPixel.cpp ShaderGenCommon: Rename WriteFmt() to Write() 2020-11-09 02:31:49 -05:00
UberShaderPixel.h VideoCommon/ShaderGenCommon: Make template functions regular functions 2020-05-25 21:12:29 -04:00
UberShaderVertex.cpp LightingShaderGen: Always calculate lighting for both color channels 2020-11-20 15:54:04 -08:00
UberShaderVertex.h
VertexLoader_Color.cpp
VertexLoader_Color.h
VertexLoader_Normal.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
VertexLoader_Normal.h
VertexLoader_Position.cpp VertexLoader_Position: Tidy up public function definitions 2019-05-30 10:29:50 -04:00
VertexLoader_Position.h
VertexLoader_TextCoord.cpp
VertexLoader_TextCoord.h
VertexLoader.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
VertexLoader.h
VertexLoaderARM64.cpp
VertexLoaderARM64.h
VertexLoaderBase.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
VertexLoaderBase.h
VertexLoaderManager.cpp
VertexLoaderManager.h
VertexLoaderUtils.h Externals: Add zstd 2020-05-13 20:53:10 +02:00
VertexLoaderX64.cpp VertexLoaderX64: Don't use PDEP on AMD Zen 2020-01-26 22:12:00 -05:00
VertexLoaderX64.h
VertexManagerBase.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
VertexManagerBase.h VideoCommon: Tweak widescreen heuristic and clean up some related Renderer logic. 2020-02-09 13:22:25 -06:00
VertexShaderGen.cpp LightingShaderGen: Always calculate lighting for both color channels 2020-11-20 15:54:04 -08:00
VertexShaderGen.h
VertexShaderManager.cpp LightingShaderGen: Always calculate lighting for both color channels 2020-11-20 15:54:04 -08:00
VertexShaderManager.h VideoCommon: remove VertexShaderManager functions instead preferring the direct freelook camera methods 2020-05-03 13:34:13 -05:00
VideoBackendBase.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
VideoBackendBase.h VideoCommon: Get rid of the global g_available_video_backends 2020-10-21 22:00:10 +02:00
VideoCommon.h VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
VideoCommon.vcxproj VideoCommon: update vcproj file to set HAS_OPENGL 2020-10-23 17:08:53 -05:00
VideoCommon.vcxproj.filters
VideoConfig.cpp DolphinQt / VideoCommon: Add additional texture dumping options. Specifically, this enables users to choose whether to dump mip maps, base level textures, or both. 2020-07-22 19:30:27 -05:00
VideoConfig.h DolphinQt / VideoCommon: Add additional texture dumping options. Specifically, this enables users to choose whether to dump mip maps, base level textures, or both. 2020-07-22 19:30:27 -05:00
VideoState.cpp
VideoState.h
XFMemory.cpp
XFMemory.h XFMemory: SETPOSMTXINFO should be SETPOSTMTXINFO 2020-04-29 05:26:02 +02:00
XFStructs.cpp VideoCommon: Migrate over to fmt 2020-11-17 21:23:58 -05:00
XFStructs.h